Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Sep 30, 2010 @ 15:31
    Ismail Mayat
    0

    Losing entities from xslt rendered content

    I am using umbraco 4.5.2 and in my xslt i have the following:

    <class="testimonial">&#147;<xsl:value-of select="comments"/>&#148;</p>

    those values should render &ldquo; and &rdquo

    however on the front end those characters do not appear. Possibly encoding issue ?

    Anyone any ideas

    Regards

    Ismail

  • elspiko 133 posts 302 karma points
    Sep 30, 2010 @ 15:35
    elspiko
    1

     

    Ismail,

    Add <!ENTITY ldquo "&#8220;"> and <!ENTITY rdquo "&#8221;"> to the top of your xslt file for furture reference this is a good site to get the entity codes from http://htmlblog.net/html-entities-and-xsl/

     

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Sep 30, 2010 @ 15:37
    Ismail Mayat
    0

    Rich,

    Awesome did that and updated my code to

    <class="testimonial">&ldquo;<xsl:value-of select="comments"/>&rdquo;</p>

    cheers

    Isamil

  • 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