recoder-code
Version:
🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!
24 lines (18 loc) • 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'
);