11 lines
252 B
JavaScript
11 lines
252 B
JavaScript
|
.pragma library
|
||
|
|
||
|
function htmlEscaped(str) {
|
||
|
str = str.replace(/&/g, "&");
|
||
|
str = str.replace(/</g, "<");
|
||
|
str = str.replace(/>/g, ">");
|
||
|
str = str.replace(/"/g, """);
|
||
|
str = str.replace(/'/g, "'");
|
||
|
return str
|
||
|
}
|