Sha256: 64ecf24a3f03c03fc088c47c5838e5a5035b37d7ded69892a0552beb7428785a
Contents?: true
Size: 329 Bytes
Versions: 51
Compression:
Stored size: 329 Bytes
Contents
/** * Escape special characters in the given string of html. * * @param {String} html * @return {String} * @api private */ module.exports = function(html) { return String(html) .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/</g, '<') .replace(/>/g, '>'); }
Version data entries
51 entries across 17 versions & 2 rubygems