Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 6 in /in/4dZI4 on line 5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<body>
<h1>hai</h1>
<script>
console.log("</script>");
</body>
</html>
Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 6 in /in/4dZI4 on line 5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<h1>hai</h1>
<script>
console.log("</script>");
</body></html>
Output for 7.1.0 - 7.1.3
Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 6 in /in/4dZI4 on line 12
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<h1>hai</h1>
<script>
console.log("</script>");
</body></html>