Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8rain1ag <asleeppiano@outlook.com>2020-02-05 00:13:18 +0300
committer8rain1ag <asleeppiano@outlook.com>2020-02-05 00:13:18 +0300
commit5d526501aba7b338a6ff6ac64c21b3bf1d38db30 (patch)
tree119b31ebb3c0fde7fb7da5d17e4e1f9f47a999bd /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.js21
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 = {
+ '&': '&amp;',
+ '<': '&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;