fixed #61
parent
dc10985ba3
commit
0e4a54328a
|
@ -402,10 +402,16 @@ function _escapeHTML(s)
|
|||
'>': '>',
|
||||
};
|
||||
}
|
||||
return s.replace(re, function (c)
|
||||
|
||||
s = s.replace(re, function (c)
|
||||
{
|
||||
return re.MAP[c];
|
||||
});
|
||||
|
||||
return s.replace(/[^\x21-\x7E\s\t\n\r]/g, function(c)
|
||||
{
|
||||
return "&#" +c.charCodeAt(0) + ";"
|
||||
});
|
||||
}
|
||||
|
||||
// copied from ACE
|
||||
|
|
Loading…
Reference in New Issue