12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
|
'use strict';
|
||
|
var $export = require('./_export');
|
||
|
var $re = require('./_replacer')(/&(?:amp|lt|gt|quot|apos);/g, {
|
||
|
'&': '&',
|
||
|
'<': '<',
|
||
|
'>': '>',
|
||
|
'"': '"',
|
||
|
''': "'"
|
||
|
});
|
||
|
|
||
|
$export($export.P + $export.F, 'String', { unescapeHTML: function unescapeHTML() { return $re(this); } });
|