Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am using umbraco 4.5.2 and in my xslt i have the following:
<p class="testimonial">“<xsl:value-of select="comments"/>”</p>
those values should render “ and &rdquo
however on the front end those characters do not appear. Possibly encoding issue ?
Anyone any ideas
Regards
Ismail
Ismail,
Add <!ENTITY ldquo "“"> and <!ENTITY rdquo "”"> 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/
Rich,
Awesome did that and updated my code to
<p class="testimonial">“<xsl:value-of select="comments"/>”</p>
cheers
Isamil
is working on a reply...
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.
Continue discussion
Losing entities from xslt rendered content
I am using umbraco 4.5.2 and in my xslt i have the following:
<p class="testimonial">“<xsl:value-of select="comments"/>”</p>
those values should render “ and &rdquo
however on the front end those characters do not appear. Possibly encoding issue ?
Anyone any ideas
Regards
Ismail
Ismail,
Add <!ENTITY ldquo "“"> and <!ENTITY rdquo "”"> 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/
Rich,
Awesome did that and updated my code to
<p class="testimonial">“<xsl:value-of select="comments"/>”</p>
cheers
Isamil
is working on a reply...
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.