Here you can find the source of escapeHtml()
var entityMap = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '/': '/' }; String.prototype.escapeHtml = function() { return this.replace(/[&<>"'\/]/g, function (s) { return entityMap[s]; });/* w ww .j a v a 2s. c o m*/ }; function getCookie(name) { var cookieStr = document.cookie; var cookieList = cookieStr.split('; '); for (var i = 0; i < cookieList.length; i++) { var cookie = cookieList[i].split('='); if (cookie[0] == name) { return decodeURI(cookie[1]); } } return ''; }
String.prototype.escapeHTML = function() { return this.replace(/</g,'<').replace(/>/g, '>'); };
String.prototype.escapeHTML = function() { return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); };
var __entityMap = { "&": "&", "<": "<", ">": ">", '"': '"', "'": ''', "/": '/' }; String.prototype.escapeHTML = function() { ...
String.prototype.escapeHTML = function () { return ('' + this).replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"'); };
String.prototype.escapeHtml = function() { return this .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/</g, '<') .replace(/>/g, '>'); };
String.prototype.escapeHtml = String.prototype.escapeHtml || (String.prototype.escapeHtml = function() { return this.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"); });
String.prototype.escape_html = function() { return this.replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, """);
String.prototype.escape_html = function(){ var span = document.createElement('span'); var txt = document.createTextNode(''); span.appendChild(txt); txt.data = this; return span.innerHTML; };
String.prototype.escape_html = function(){ var span = document.createElement('span'); var txt = document.createTextNode(''); span.appendChild(txt); txt.data = this; return span.innerHTML; }; var Notifer = new function(){ var self = this; ...