XSLT string with HTML entities - How can I get it to render as HTML?

Posted by Kache4 on Stack Overflow See other posts from Stack Overflow or by Kache4
Published on 2010-05-18T00:35:42Z Indexed on 2010/05/18 0:40 UTC
Read the original article Hit count: 298

Filed under:
|
|

I'm completely new to using XSL, so if there's any information that I'm neglecting to include, just let me know.

I have a string in my XSLT file that I can display like this:

<xsl:value-of select="@Description/>

and it shows up, rendered in a browser like:

<div>My text has html entities within it</div> <div>This includes quotes, like  &quot;Hello World&quot; and sometimes whitespaces.&nbsp;</div>

What can I do to get this string rendered as html, so that <div></div> results in newlines, &quot; gives me ", and &nbsp gives me a space?

I could elaborate on things I've already tried that haven't worked, but I don't know if that's relevant.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about string