Apostrophe in website-name parameter
This is an open discussion with 4 replies, filed under General.
Search
This is a known bug, although I don’t know if it’s been logged on the tracker. The workaround is to use the Param Pool to XML extension which will get the value into your XML with correct apostrophes. Symphony 2.2 will include this functionality by default.
OK, I’ll just go with my workaround and wait for 2.2.
2.3.2 still appears to have this same bug, FYI.
You can use parameters instead, /data/params/website-name
.
Create an account or sign in to comment.
If
$website-name = Sharon's Recipes
and I display it with<xsl:value-of select="$website-name"/>
it shows on the page as Sharon'
s Recipes. If I adddisable-output-escaping = 'yes'
to the value-of statement it displays correctly as Sharon’s Recipes in Firefox, but in IE8 it still displays as Sharon'
s Recipes.My workaround is to ignore the parameter and just display the literal text, but I would rather do it right. Any suggestions?