diff options
author | 8rain1ag <asleeppiano@outlook.com> | 2020-02-05 00:13:18 +0300 |
---|---|---|
committer | 8rain1ag <asleeppiano@outlook.com> | 2020-02-05 00:13:18 +0300 |
commit | 5d526501aba7b338a6ff6ac64c21b3bf1d38db30 (patch) | |
tree | 119b31ebb3c0fde7fb7da5d17e4e1f9f47a999bd /assets/node_modules/lodash/_escapeHtmlChar.js |
Initial commit
Diffstat (limited to 'assets/node_modules/lodash/_escapeHtmlChar.js')
-rw-r--r-- | assets/node_modules/lodash/_escapeHtmlChar.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/assets/node_modules/lodash/_escapeHtmlChar.js b/assets/node_modules/lodash/_escapeHtmlChar.js new file mode 100644 index 0000000..7ca68ee --- /dev/null +++ b/assets/node_modules/lodash/_escapeHtmlChar.js @@ -0,0 +1,21 @@ +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; |