Process in XSLT encoded characters returned by Symphony
This is an open discussion with 2 replies, filed under XSLT.
Search
For #1 try using xsl:value-of
and use the disable-output-escaping
attribute.
I haven't used Frontend Localisation so can't comment on #2.
For #1 try using xsl:value-of and use the disable-output-escaping attribute.
Worked. Thanks !
I haven't used Frontend Localisation so can't comment on #2.
You don't even need to (and is recommended not to, yet). I was just wondering how to achieve this result:
<p>Contains & and less < than and of course greater > than</p> it even contains line feeds & tabs <br />
And I was looking at how Markdown does it, but couldn't figure it. So was asking for some direct help.
Create an account or sign in to comment.
1_ Let's say I have a classic
Textarea Field
with no formatter. If I fill this:The output in debug view is this:
Now I want to XSLT process the HTML code but don't know how (aka convert entities to special characters and return the result). Any ideas?
<xsl:copy-of select="field" />
doesn't work, of course.2_ A similar issue appears in Frontend Localisation extension. I'm storing
$key => $value
pairs of translation strings and$value
can contain HTML code which is added to XML output via a DS.How to process the above textarea input value to this?
a.k.a. convert everything but tags? I was looking at Markdown extension but I'm lost ...