When reading in content that includes escaped HTML sequences, these are interpreted by the parse() function as unescaped HTML and included in outputs as unescaped.
This causes issues when text is included on the page that should be unescaped and is interpreted by the browser as an HTML tag.
For example:
SOURCE:
<html>
<body>
<textarea id="source'>
<p>
This content should be enclosed within an escaped p tag<br />
</p>
</textarea>
</body>
</html>
PARSED INPUT:
<html>
<body>
<textarea id="source'>
<p>
This content should be enclosed within an escaped p tag<br />
<p>
</textarea>
</body>
</html>
When reading in content that includes escaped HTML sequences, these are interpreted by the parse() function as unescaped HTML and included in outputs as unescaped.
This causes issues when text is included on the page that should be unescaped and is interpreted by the browser as an HTML tag.
For example:
SOURCE:
PARSED INPUT: