Jump to content

Escape tpl {$variable}, containing HTML


Amazzing

Recommended Posts

According to Prestashop Validator requirements, all tpl {$variables} have to be escaped ('htmlall', 'intval', etc.).

 

What if a variable contais HTML code, and needs to be displayed as is, without escaping any tags, quotes ar anything else? 

 

Is there any option, like |escape:'none'? Or may be there is another way to validate this kind of variables?

Link to comment
Share on other sites

  • 1 year later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...