Html In Custom .tpl File Not Parsed

I’m trying to show a variable with some html in it on a custom template file (.tpl), but the html is not being parsed, but shown in the page.



So I have a variable with some html: $variable = ‘line 1
line 2’;

Expected output:



line1

line2



Real output:

line1
line2



Viewing source I see that this is because the html tags are being escaped:

line1
line2



So I tried using escape (both html and htmlall):

{$error|unescape:‘html’}

{$error|unescape:‘htmlall’}



But neither appears to work.



Info: I’m on CS-Cart 4.3.3

Use



{$error nofilter}

I'll give it a try, thanks!

Thanks eCL, that did the trick.

:mrgreen:

You are welcome! :)