I am trying to style an RSS document containing a description with HTML. I am unable to display this HTML using XSLT, in the Firefox browser.
This is the XML document:
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='/css/rss.xsl' media='all' ?>
<rss version='2.0'>
<channel>
<item>
<description>
<![CDATA[<p>This is the description</p>]]>
</description>
</item>
</channel>
</rss>
I've tried this XSLT command, but it shows the HTML:
<xsl:copy-of select="description"/></li>
This didn't work either:
<xsl:value-of select="description" disable-output-escaping="yes"/>
This is the description
]]> in your input xml – imran Dec 21 '18 at 04:16