function checkEscaped(str) { if (str !== '<script>' && str !== '<script>' && str !== '<script>' && str !== '<script>') { throw new Error('Not escaped: ' + str); } } function checkStripped(str) { if (str !== '') { throw new Error('Not stripped: ' + str); } } function checkNotEscaped(str) { if (str !== '