Re: [xsl] HTML encoded text

Subject: Re: [xsl] HTML encoded text
From: Alexander Anokhin <ava@xxxxxx>
Date: Tue, 16 Nov 2004 13:48:24 +0400
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?

Current Thread