classic-rocket icon indicating copy to clipboard operation
classic-rocket copied to clipboard

Invalid smarty escape type html_attr in product-comments-list.tpl

Open lmeyer1 opened this issue 2 years ago • 3 comments

There is an invalid smarty escape type html_attr in product-comments-list.tpl. See https://github.com/PrestaShop/PrestaShop/issues/28216#issuecomment-1099979989 for the exact error.

lmeyer1 avatar Apr 19 '22 13:04 lmeyer1

The rrror is Still there: (1/1) ContextErrorException User Notice: escape: unsupported type: html_attr - returning unmodified string

in modifier.escape.php line 257 at smarty_modifier_escape('

@COMMENT_DATE@
Da @CUSTOMER_NAME@

@COMMENT_TITLE@

@COMMENT_COMMENT@

', 'html_attr', 'UTF-8', true)

matteolavaggi avatar Feb 24 '23 10:02 matteolavaggi

Think this can solve: data-comment-item-prototype="{$comment_prototype|escape:'html'}">

matteolavaggi avatar Feb 24 '23 10:02 matteolavaggi

where do we put it?

Think this can solve: data-comment-item-prototype="{$comment_prototype|escape:'html'}">

where do we put it?

ancedric avatar Sep 29 '23 13:09 ancedric