pull/85/merge
Peter 'Pita' Martischka 2011-08-10 17:48:36 +01:00
parent dc10985ba3
commit 0e4a54328a
1 changed files with 7 additions and 1 deletions

View File

@ -402,10 +402,16 @@ function _escapeHTML(s)
'>': '>', '>': '>',
}; };
} }
return s.replace(re, function (c)
s = s.replace(re, function (c)
{ {
return re.MAP[c]; return re.MAP[c];
}); });
return s.replace(/[^\x21-\x7E\s\t\n\r]/g, function(c)
{
return "&#" +c.charCodeAt(0) + ";"
});
} }
// copied from ACE // copied from ACE