add < and > escaping to the html escape method

This commit is contained in:
Damien Churchill 2009-10-27 10:57:47 +00:00
parent e17bd472a8
commit 826f1a2be9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.apply(Ext, {
escapeHTML: function(text) {
text = String(text);
text = String(text).replace('<', '&lt;').replace('>', '&gt;');
return text.replace('&', '&amp;');
},