Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smarty "unescape" modifier
I tried to use {$smarty_var|unescape:"html"} to display some stuff as nicely formatted HTML, but the parser just errored and halted. Do we have this modifier or am I looking at documentation that is too new?
We don't have that yet. I tried it with Smarty 3 and it works correctly. Try with html_entity_decode:

NOTE: I am working with smarty3 in development branch, I haven't released it yet because there is a couple of issues with the reporting system. We are VERY close to releasing this. In fact there are only 4 external libraries pending upgrade to move to PHP7. I expect to have Smarty3 uploaded soon.
Ah, didn't even know that existed. Thanks! Will try

Forum Jump:

Users browsing this thread: 1 Guest(s)