XF 1.4 Do Not Parse HTML in template

Brent W

Well-known member
How can I use the HTML bbcode within a template? I have an add-on where I want to present HTML code and not have it parsed by the template.
 
It really depends where this html code is coming from but with a lack of that info this is a good place to get you started if you want to play around with some stuff.



<xen:set var="$yourContent">I am a string containing some <b>html</b></xen:set>

{$yourContent}
// output looks like: I am a string containing some <b>html</b>

{xen:raw $yourContent}
// output looks like: I am a string containing some html
 
Back
Top Bottom