I am using the simple editor to display web page summaries.
When I use the bold, italics or the link functionality I see the html added to the summary. However, the html is also displaying on the website.
For example I make some text bold and I see this in the simple editor <strong>test</strong>. Rather than becoming bold in the summary on the actual web page I see exactly the same <strong>test</srtong>.
It seems like something's not set up correctly - any ideas?
How are you outputting the value of the simple editor, with an XSLT macro? If so, you need to add disable-output-escaping="yes" to get the HTML to render, ie:
Simple Editor not working correctly
Hi,
I am using the simple editor to display web page summaries.
When I use the bold, italics or the link functionality I see the html added to the summary. However, the html is also displaying on the website.
For example I make some text bold and I see this in the simple editor <strong>test</strong>. Rather than becoming bold in the summary on the actual web page I see exactly the same <strong>test</srtong>.
It seems like something's not set up correctly - any ideas?
Thanks
Hi,
How are you outputting the value of the simple editor, with an XSLT macro? If so, you need to add disable-output-escaping="yes" to get the HTML to render, ie:
This goes for RTE and any other fields that store HTML also.
Or if you're using Razor I think it's @Html.Raw(Model.yourField)
HTH,
Tom
Hi Tom - I'm using an xslt macro - that fix worked. Thank you!
is working on a reply...