Wednesday, May 6, 2015

disable-output-escaping in a DVWP using XSLT

I have a custom list. That custom list has a plain text milti-line field. In it the user will enter HTML, like "<br>hi</br>";

I want to render that HTML in my DVWP using XSLT.

<xsl:value-of select="@Field_Name" disable-output-escaping="no" /> outputs "&lt;br&gt;hi&lt;/br&gt;"

<xsl:value-of select="@Field_Name" disable-output-escaping="Yes" /> outputs "<br>hi</br>"

Anyway I can make it render the actual HTML?

No comments:

Post a Comment