aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/library/modules/core.string.unescape-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/library/modules/core.string.unescape-html.js')
-rw-r--r--node_modules/core-js/library/modules/core.string.unescape-html.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/core.string.unescape-html.js b/node_modules/core-js/library/modules/core.string.unescape-html.js
new file mode 100644
index 00000000..eb8a6cfb
--- /dev/null
+++ b/node_modules/core-js/library/modules/core.string.unescape-html.js
@@ -0,0 +1,11 @@
+'use strict';
+var $export = require('./_export');
+var $re = require('./_replacer')(/&(?:amp|lt|gt|quot|apos);/g, {
+ '&': '&',
+ '&lt;': '<',
+ '&gt;': '>',
+ '&quot;': '"',
+ '&apos;': "'"
+});
+
+$export($export.P + $export.F, 'String', { unescapeHTML: function unescapeHTML() { return $re(this); } });