Sha256: 446b3e1c47e0ef291eb25226a98626e8961a4b3e87c15eeedf74f20c51aa3e56
Contents?: true
Size: 453 Bytes
Versions: 193
Compression:
Stored size: 453 Bytes
Contents
/** Used to map characters to HTML entities. */ var htmlEscapes = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '`': '`' }; /** * Used by `_.escape` to convert characters to HTML entities. * * @private * @param {string} chr The matched character to escape. * @returns {string} Returns the escaped character. */ function escapeHtmlChar(chr) { return htmlEscapes[chr]; } module.exports = escapeHtmlChar;
Version data entries
193 entries across 89 versions & 9 rubygems