mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-10 06:36:16 +02:00
Fix Unicode bug in HTML export
This commit is contained in:
parent
161a38efd2
commit
0a8e32563b
@ -77,7 +77,7 @@ exports._analyzeLine = function(text, aline, apool){
|
||||
|
||||
|
||||
exports._encodeWhitespace = function(s){
|
||||
return s.replace(/[^\x21-\x7E\s\t\n\r]/g, function(c){
|
||||
return "&#" +c.charCodeAt(0) + ";";
|
||||
return s.replace(/[^\x21-\x7E\s\t\n\r]/gu, function(c){
|
||||
return "&#" +c.codePointAt(0) + ";";
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user