- the template element is said to contain "mixed content", and all the whitespace before "description" and after the last apostrophe is called "significant whitespace" and will be output.
- but if that's not really what you want (if it's HTML already, you probably don't want extra hard breaks?), you can try the normalize-space() function:
How to convert Richtext Editor into a string?
I'm trying to convert a Richtext Editor content into a JSON string, my code for this is
description: '<xsl:value-of select="htmlContent" disable-output-escaping="yes"/>'
but the output I get is not quite what I wanted, I'm having this:
description: '
<p>This is my 1st line content</p>
'
Witch breaks the JSON string. I even tried replacing New Lines with
<xsl:value-of select="Exslt.ExsltStrings:replace($varDescription, '\n', '<br/>')" disable-output-escaping="yes"/>
But I got the same output :(
Is there a way to simplify this simple task? How should I accomplish this?
Hi Bruno,
There's a couple of things you can do to better control this - first of all, if you have something like this:
/Chriztian
is working on a reply...