To display the 'bodyText' of the parent node. The bodyText is a RichTextField, and I cannot seem to prevent it from encoding the html in 'bodyText'.
When inserting a field in the template, umbraco has 3 different encoding options, 'none', 'url' and 'html'. If I select none, then no attributes are added to the tag - so I presume 'none' is the default - And yet it still is encoding the html.
Inline XSLT, prevent html encoding
Hi,
I have this in a template I'm working on:
<umbraco:Item field="parentID" runat="server" xslt="umbraco.library:GetXmlNodeById({0})/data [@alias='bodyText']"></umbraco:Item>
To display the 'bodyText' of the parent node. The bodyText is a RichTextField, and I cannot seem to prevent it from encoding the html in 'bodyText'.
When inserting a field in the template, umbraco has 3 different encoding options, 'none', 'url' and 'html'. If I select none, then no attributes are added to the tag - so I presume 'none' is the default - And yet it still is encoding the html.
Any thoughts?
Hi Chad,
Add
as attribute on the umbraco:Item, it should do the trick
Cheers,
/Dirk
is working on a reply...