• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Do Not Parse HTML in template

Brent W

Well-known member
#1
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.
 

EQnoble

Well-known member
#2
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