XSLT Value-Of - Getting HTML code, rather than content.
Hi,
I am displaying footer images throughout my site using XSLT grabbing the information from a RichText Editor, however the final product displayed is the actual HTML.
ie: <p><img src="/media/114/logo-footer-harbourair.gif" width="137" height="23" alt="logo-footer-harbourair"/></p> instead of the actual image.
XSLT Value-Of - Getting HTML code, rather than content.
Hi,
I am displaying footer images throughout my site using XSLT grabbing the information from a RichText Editor, however the final product displayed is the actual HTML.
ie: <p><img src="/media/114/logo-footer-harbourair.gif" width="137" height="23" alt="logo-footer-harbourair"/></p> instead of the actual image.
My XSLT reads:
<xsl:template match="/">
<xsl:variable name="homeNode" select="umbraco.library:GetXmlNodeById(1047)"/>
<xsl:value-of select="$homeNode/footerSponsors"/>
</xsl:template>
Where "footerSponsors" is the alias of the RichText Editor.
Is there a way where I can output the actual content rather than just the HTML code?
Thanks!
Owen
Add the attribute disable-output-escaping="yes" to your value-of tag to render the HTML
IE:
Thank you Tom!
is working on a reply...