3 ms·
ECMAScript has escape sequence just for this occasion: <\/script> Works everywhere (it's shame so few people know about it and use uglier and invalid "</s
by pornel 16y ago
ECMAScript has escape sequence just for this occasion:
<\/script>
Works everywhere (it's shame so few people know about it and use uglier and invalid "</sc"+"ript>").
- pbiggar 16y agoWhy is that invalid?
- pornel 16y agohttp://www.w3.org/TR/html4/types.html http://www.w3.org/TR/html4/types.html "The first occurrence of the character sequence "</" (end-tag open delimiter) is treated as terminating the end of the element's content." Of course browsers never implemented this correctly.