diff options
Diffstat (limited to 'node_modules/core-js/modules/core.string.escape-html.js')
-rw-r--r-- | node_modules/core-js/modules/core.string.escape-html.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/core.string.escape-html.js b/node_modules/core-js/modules/core.string.escape-html.js new file mode 100644 index 000000000..a4b8d2f02 --- /dev/null +++ b/node_modules/core-js/modules/core.string.escape-html.js @@ -0,0 +1,11 @@ +'use strict'; +var $export = require('./_export'); +var $re = require('./_replacer')(/[&<>"']/g, { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' +}); + +$export($export.P + $export.F, 'String', {escapeHTML: function escapeHTML(){ return $re(this); }});
\ No newline at end of file |