12 lines
284 B
JavaScript
12 lines
284 B
JavaScript
'use strict';
|
|
var $export = require('./_export');
|
|
var $re = require('./_replacer')(/[&<>"']/g, {
|
|
'&': '&',
|
|
'<': '<',
|
|
'>': '>',
|
|
'"': '"',
|
|
"'": '''
|
|
});
|
|
|
|
$export($export.P + $export.F, 'String', { escapeHTML: function escapeHTML() { return $re(this); } });
|