1. 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

Discussion in 'XenForo Questions and Support' started by BamaStangGuy, Jan 23, 2015.

  1. BamaStangGuy

    BamaStangGuy 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.
     
  2. EQnoble

    EQnoble Well-Known Member

    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
     
    Crazy-Achmet and BamaStangGuy like this.

Share This Page