escaping & / & problem
This is an open discussion with 11 replies, filed under Troubleshooting.
Search
If you’re outputting your field like this:
<xsl:value-of select="uri-field"/>
Try:
<xsl:value-of select="uri-field" disable-output-escaping="yes"/>
i am outputting the field like this:
<a href="{uri-field}">Link</a>
how to apply disable output escaping in this case?
<a> <xsl:attribute name="href"> <xsl:value-of select="uri-field" disable-output-escaping="yes"/> </xsl:attribute> <xsl:text>Link</xsl:text> </a>
this syntax works fine but not solves the problem :(
debugging the page there’s a &
in the output too. why it’s marked green?
What version of Symphony are you using? What type of field is it?
i am using symphony 2.1.1 and the fields type is text input.
Can you attach a screenshot of your data source configuration?
here’s the screenshot, is there something wrong?
and the xsl:
Hm. You said it’s already escaped in the XML, right?
in the XML it looks like this:
Create an account or sign in to comment.
Hello there!
I’ve got a big problem. How do i escape the & char? I use a URI field to output a link, but when there’s a & char, symphony converts it to
&
Thanks a lot!