Sha256: 0d7c9edeb35b18003486ab737f2a3e6db9fa1c1254186b0599fd8a4b9d337163
Contents?: true
Size: 249 Bytes
Versions: 2
Compression:
Stored size: 249 Bytes
Contents
/** * Escape the given `html`. * * @param {String} html * @return {String} * @api private */ exports.escape = function(html){ return String(html) .replace(/&(?!\w+;)/g, '&') .replace(/</g, '<') .replace(/>/g, '>'); };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spacedocs-0.0.3 | lib/node_modules/dox/lib/utils.js |
spacedocs-0.0.2 | dox/lib/utils.js |