minor bug corrections

This commit is contained in:
Artur Ventura 2011-11-12 15:05:59 +00:00
parent 96a566ee6e
commit e35ad25fbf
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -13,7 +13,7 @@
function htmlentities(str) {
return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
return String(str).replace(new RegExp("&","g"), '&amp;').replace(new RegExp("<","g"), '&lt;').replace(new RegExp(">","g"), '&gt;').replace(new RegExp("\"","g"), '&quot;');
}
#define LOG(msg) write(msg);\