%PDF- %PDF-
Direktori : /var/www/projetos/stb.ind.br/wp-content/plugins/webp-express/lib/options/js/0.19.0/ |
Current File : /var/www/projetos/stb.ind.br/wp-content/plugins/webp-express/lib/options/js/0.19.0/escapeHTML.js |
/* function htmlEscape(str) { return str .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/</g, '<') .replace(/>/g, '>'); } */ function webpexpress_escapeHTML(s) { return s.replace(/./gm, function(s) { var safe = /[0-9a-zA-Z\!]/; if (safe.test(s.charAt(0))) { return s.charAt(0); } switch (s.charAt(0)) { case '*': case '#': case ' ': case '{': case '}': case ':': case '.': case '`': return s.charAt(0); default: return "&#" + s.charCodeAt(0) + ";"; } }); }