4e05621c378e543ac0faade45f3881ad09cedd6d.svn-base
459 Bytes
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'
);