7ad2aa66bb
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
23 lines
459 B
JavaScript
23 lines
459 B
JavaScript
delete Object.freeze;
|
|
|
|
var html = require('../cjs');
|
|
|
|
console.assert(
|
|
html.escape('&<>\'"') === '&<>'"',
|
|
'correct escape'
|
|
);
|
|
|
|
console.assert(
|
|
html.escape('<>\'"&') === '<>'"&',
|
|
'correct inverted escape'
|
|
);
|
|
|
|
console.assert(
|
|
'&<>\'"' === html.unescape('&<>'"'),
|
|
'correct unescape'
|
|
);
|
|
|
|
console.assert(
|
|
'<>\'"&' === html.unescape('<>'"&'),
|
|
'correct inverted unescape'
|
|
);
|