Author: nbelaevski
Date: 2008-12-11 11:43:19 -0500 (Thu, 11 Dec 2008)
New Revision: 11721
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSEncoder.java
Log:
https://jira.jboss.org/jira/browse/RF-5273
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSEncoder.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSEncoder.java 2008-12-11
16:11:32 UTC (rev 11720)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/javascript/JSEncoder.java 2008-12-11
16:43:19 UTC (rev 11721)
@@ -74,6 +74,9 @@
(c == 0x5c) || // [\]
(c == 0x03) || // [esc]
(c == ']') || // ] - to avoid conflicts in CDATA
+ (c == '<') || // - escape HTML markup characters
+ (c == '>') || // - HTML
+ (c == '&') || // - HTML
(c < 0x20) || // See <
http://www.w3.org/TR/REC-xml#charsets>
((c > 0xd7ff) && (c < 0xe000)) || (c > 0xfffd)|| (c >
0xff)) {
return (false);