cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: [i18n] Replacing entities with encoded chars
Date Sun, 18 Apr 2004 08:35:56 GMT
On 18.04.2004 10:17, Jaroslav Kuruc wrote:

>>> The problem is when I want to generate text which will be showed in
>>> javascript alert. When it contains entity representation of the
>>> characters, text in the message box is escaped and the entity
>>> representation is showed. At least in the IE.
> The point is, browser doesn't understand entities in JS. Try this:
> <html>
> <body>
> <script type="text/javascript" language="JavaScript">
> alert('&Aacute;');
> </script>
> </body>
> </html>

That's true(ly a problem). I don't know if it is a spec issue, at least 
I don't understand why the script part is not parsed in the same way 
like the HTML itself. It's only read as text. The only solution I know 
is to separate the JavaScript into external files.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message