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

Parsing HTML tags from database field

Discussion in 'XenForo Development Discussions' started by Brent W, Aug 19, 2013.

  1. Brent W

    Brent W Well-Known Member

    I have content in a database field that I am pulling out and putting into an external page that already had html tags in it formatting the content the way I want. However, when I query and pull out the data the html tags show up as plain text. How can I get the page to parse the html tags that are in the database?
  2. Jeremy

    Jeremy Well-Known Member

    You will most likely need to do htmldecode() on it since I believe it's converted to the encoded equivalents in the database.
    Brent W likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    If you want to parse that HTML in a template use:

    {xen:raw $var}
    Brent W and Jeremy like this.
  4. Brent W

    Brent W Well-Known Member

    That worked. Thanks

Share This Page