Cristain, You could embed the Javascript in CDATA then it can contain anything except the string "]]>". This should occur much less frequently in JavaScript.
Kevin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Vest Hansen Sent: Thursday, March 27, 2008 10:55 AM To: [email protected] Subject: JavaScript in XML, and Operators 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 > and <, 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 _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
