I suggest you learn about XML CDATA sections.

Attila.

On 2008.03.27., at 16:55, Christian Vest Hansen wrote:
> Hi,
>
> We're using Rhino to process some JavaScript that is hidden in an XML
> document. This means that our javascript also has to be valid XML, in
> the sense that it should not break anything but sit there and play
> plain-text until Rhino comes along.
>
> This gives us some problems with operators such as <, >, <=, >=, <<,
>>> and >>>, so we have to encode them with &gt; and &lt;, which is
> tedious.
>
> I wonder if there happen to be alternative alphabetic names for these
> operators that we could use instead?
>
> I think I recall seeing such operators, but maybe I'm wrong since
> google couldn't find anything about them.
>
>
> -- 
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to