Here you can find the source of escape()
String.prototype.escape = function(){ return this.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/])/g,'\\$1') }
String.prototype.escape = function () { var entityMap = { "&": "&", "<": "<", ">": ">", '"': '"', "'": ''' }; return this.replace(/[&<>"']/g, function (s) { ...
String.prototype.escape = function() { var tagsToReplace = { '&': '&', '<': '<', '>': '>' }; return this.replace(/[&<>]/g, function(tag) { return tagsToReplace[tag] || tag; }); ...
String.prototype.escape = function () { var tagsToReplace = { '&': '&', '<': '<', '>': '>' }; return this.replace(/[&<>]/g, function (tag) { return tagsToReplace[tag] || tag; }); ...
String.prototype.escape = function () { var entityMap = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '/': '/' }; ...