Urara-Blog/node_modules/.pnpm-store/v3/files/0a/e2458ae0d82672b3515c02310d4ee05eb1f8c647ef2299df2e99abc96d1b4799e4996594d2ec302939c28365fda3a85f570a7fd117bb074202b50bb6bf8150
2022-08-14 01:14:53 +08:00

21 lines
479 B
Text

var basePropertyOf = require('./_basePropertyOf');
/** Used to map characters to HTML entities. */
var htmlEscapes = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;'
};
/**
* 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;