I've created a macro that fetches a property called slideContent from the pages in a branch in my website to be used in a slideshow on the start page. The information it gets is presented with the HTML-tags in clear text instead of formatting the text as I designed them when creating the slide pages.
What did I do wrong here? I'm new to umbraco and XSLT so it might just be a basic error, maybe not.
HTML-tags are printed as clear text
I've created a macro that fetches a property called slideContent from the pages in a branch in my website to be used in a slideshow on the start page. The information it gets is presented with the HTML-tags in clear text instead of formatting the text as I designed them when creating the slide pages.
What did I do wrong here? I'm new to umbraco and XSLT so it might just be a basic error, maybe not.
Here's a part of the macro code:
<xsl:variable name="slideSource" select="/macro/slideSource"/> <xsl:template match="/"> <div id="slideContainer"> <ul id="slides1"> <xsl:for-each select="umbraco.library:GetXmlNodeById($slideSource)/node [string(data [@alias='umbracoNaviHide']) != '1']"> <li> <div class="Slide"> <xsl:value-of select="data [@alias = 'slideContent']"/> </div> </li> </xsl:for-each> </ul> </div> <br /> </xsl:template>
Add disable-output-escaping="yes" to your value-of selects, like so:
disable-output-escaping="yes" wil do the tric
I figured it would be an easy thing to fix. Thanks!
is working on a reply...