|
|
@@ -63,11 +63,13 @@ |
|
|
'>': '>', |
|
|
'>': '>', |
|
|
'"': '"', |
|
|
'"': '"', |
|
|
"'": ''', |
|
|
"'": ''', |
|
|
'/': '/' |
|
|
|
|
|
|
|
|
'/': '/', |
|
|
|
|
|
'`': '`', |
|
|
|
|
|
'=': '=' |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
function escapeHtml (string) { |
|
|
function escapeHtml (string) { |
|
|
return String(string).replace(/[&<>"'\/]/g, function fromEntityMap (s) { |
|
|
|
|
|
|
|
|
return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap (s) { |
|
|
return entityMap[s]; |
|
|
return entityMap[s]; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|