(function() { var specialChars = {'<': 'lt', '>': 'gt', '&': 'amp'}, re = new RegExp('[' + Object.keys(specialChars).join('') + ']', 'g'); String.prototype.escape = function() { return this.replace(re, function(match) { return '&' + specialChars[match] + ';'; }); } })(); По идеи быстрее должна быть |
Часовой пояс GMT +3, время: 11:55. |