[Radiant] Quotes in JavaScript string are converted to
HTML entities
Jonathan Métillon
jmetillon at gmail.com
Wed Sep 5 03:03:42 CDT 2007
>
> Let me correct : when I posted my message about snippets, I did not
> actually test it because I already had converted all my form to pure
> HTML and simply deactivated Textile filter.
>
> But now I have another form, which is still using Textile. And I
> included my snippet, containing the JavaScript. And the JavaScript is
> again f***d up! So I added the <notextile>...</notextile> tag and it
> looks better, but one character remains converted: it's & (the
> ampersand) that is converted to &
>
> And I really need it because I can't use the JavaScript AND operator
> (&&)! Do you know how to stop Textile from escaping the ampersand?
>
> Thank you.
>
> Jonathan
>
>
>
> Have you tried wrapping the code in a CDATA tag? Textile might ignore that.
>
> Sean
Hi Sean,
I just tried and the <![CDATA[ was converted to <![CDATA[
If I combine CDATA and notextile, I still have & converted to &
More information about the Radiant
mailing list