Copied to clipboard

Flag this post as spam?

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


  • Kasper Dyrvig 246 posts 379 karma points
    Aug 09, 2010 @ 10:30
    Kasper Dyrvig
    0

    XSLT writes p-tags

    Hi,

    I have a strange problem with xslt... it is showing the html-tags from a texteditor.

    Fx: <p>Hallo<br /><br /><strong>More text</strong></p>

    In the XSLT I have a value-of to display the content...

    How can I solve this?

  • Seth Niemuth 275 posts 397 karma points
    Aug 09, 2010 @ 10:52
    Seth Niemuth
    1

    you need to use disable-output-escaping like so:

     <xsl:value-of select="./data[$bodyText]" disable-output-escaping="yes" />

  • Kasper Dyrvig 246 posts 379 karma points
    Aug 09, 2010 @ 11:26
    Kasper Dyrvig
    0

    Yes! That was it.

    I have seen that code before, but now I know what it does. Thank you

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies