I have an XSLT file that iterates through all child nodes that exist on a parnet page. Each child has a property called "Description" that is a RichTextEditor type. I wrote up my XSLT to dynamically render each child on the parent page, but the HTML markup in the RichText Editor is displayed as regular text. I don't want to strip the HTML out (which means I cannot use umbraco.Library.StripHtml), but I want the Html in the RichText Editor to render properly. Here is the snippet of XSLT that I use to initialize each node:
<xsl:template match="/"> <!-- For each child node of the current page --> <div> <xsl:for-each select="$currentPage/node"> <h6> <p><xsl:value-of select="data [@alias='Name']/text()" /></p> <p><xsl:value-of select="data [@alias='Title']/text()" /></p> </h6> <xsl:value-of select="data [@alias='Description']" /> <xsl:value-of select="data [@alias='Photo']" /> <hr size="2" /> <br /> </xsl:for-each> </div> </xsl:template>
Is there anything in the Umbraco Library that can render HTML, or should I set the property data type to something else besides RichText Editor?
Quick XSLT and RichTextEditor question
I have an XSLT file that iterates through all child nodes that exist on a parnet page. Each child has a property called "Description" that is a RichTextEditor type. I wrote up my XSLT to dynamically render each child on the parent page, but the HTML markup in the RichText Editor is displayed as regular text. I don't want to strip the HTML out (which means I cannot use umbraco.Library.StripHtml), but I want the Html in the RichText Editor to render properly. Here is the snippet of XSLT that I use to initialize each node:
Is there anything in the Umbraco Library that can render HTML, or should I set the property data type to something else besides RichText Editor?
Hi Ben
See this post http://our.umbraco.org/forum/developers/xslt/3763-Show-output-from-Richtext-Editor-on-subpage
Thanks,
Matthew
Thank you for the quick reply! That got it!
is working on a reply...