Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sophie Mitchell 23 posts 43 karma points
    Mar 14, 2012 @ 19:15
    Sophie Mitchell
    0

    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

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 14, 2012 @ 19:32
    Tom Fulton
    0

    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:

    <xsl:value-ofselect="yourField"disable-output-escaping="yes"/>

    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

  • Sophie Mitchell 23 posts 43 karma points
    Mar 14, 2012 @ 19:40
    Sophie Mitchell
    0

    Hi Tom - I'm using an xslt macro - that fix worked. Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft