xsl-list
[Top] [All Lists]

Re: HTML encoded text

2004-11-16 02:48:24
Arun Sinha:

Hi Andreas


I have an XML file with HTML encoded values, for example:

<node>&amp;lt;p&amp;gt;a paragraph&amp;lt;/p&amp;gt;</node>

Is it possible to translate/convert this into valid HTML in my XSLT file? For example, I want my XSLT file to convert the above node value to <p>a paragraph</p>.


You can use the following :-

<xsl:value-of select="node" disable-output-escaping="yes" />

I thought that Andreas already has escaped chars in the input tree not in the result, isn't it?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>