Author: pyaschenko
Date: 2010-11-04 08:38:24 -0400 (Thu, 04 Nov 2010)
New Revision: 19928
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/json-dom.js
Log:
http://jira.jboss.com/jira/browse/RF-9626
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/json-dom.js
===================================================================
---
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/json-dom.js 2010-11-04
11:01:49 UTC (rev 19927)
+++
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/json-dom.js 2010-11-04
12:38:24 UTC (rev 19928)
@@ -26,7 +26,8 @@
'"':""",
'\'':"'",
'\u00A0':" "
- },
+ },
+
// Public functions
getInnerHTML : function(context) {
var children = [];
@@ -38,12 +39,7 @@
},
// Escape XML symbols - < > & ' ...
xmlEscape : function(value) {
- var text = value ? value.toString() : "";
- for(var i in this._symbols ) {
- text = text.replace(i,this._symbols[i]);
-
- }
- return text;
+ return jQuery("<div></div>").text(value).html();
}
};