Sha256: 8794b39eb350adb7277e1ee6403673ee5e85363405d3611d239c3cf670d7ad84
Contents?: true
Size: 479 Bytes
Versions: 264
Compression:
Stored size: 479 Bytes
Contents
var basePropertyOf = require('./_basePropertyOf'); /** 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. */ var escapeHtmlChar = basePropertyOf(htmlEscapes); module.exports = escapeHtmlChar;
Version data entries
264 entries across 262 versions & 29 rubygems