Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 4 in /in/tXp91 on line 11
DOMDocument parsing (libxml)
----------------------------
3 paragraph elements found:
* Paragraph 1
* Console log text");
* Paragraph 2
DOM serialised:
<!DOCTYPE html>
<html>
<head>
<title>Valid HTML5 Document</title>
</head>
<body>
<p>Paragraph 1</p>
<script>console.log("</script>
</body>
</html><html>
<p>Console log text");
</p>
<p>Paragraph 2</p>
</html>
DOM\HTMLDocument parsing (lexbor)
---------------------------------
2 paragraph elements found.
* Paragraph 1
* Paragraph 2
DOM serialised:
<!DOCTYPE html><html><head><title>Valid HTML5 Document</title>
</head><body><p>Paragraph 1</p>
<script>console.log("</html>Console log text");</script>
<p>Paragraph 2</p></body></html>
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.1.32, 8.2.20 - 8.2.29, 8.3.5 - 8.3.28
Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 4 in /in/tXp91 on line 11
DOMDocument parsing (libxml)
----------------------------
3 paragraph elements found:
* Paragraph 1
* Console log text");
* Paragraph 2
DOM serialised:
<!DOCTYPE html>
<html>
<head>
<title>Valid HTML5 Document</title>
</head>
<body>
<p>Paragraph 1</p>
<script>console.log("</script>
</body>
</html><html>
<p>Console log text");
</p>
<p>Paragraph 2</p>
</html>
Fatal error: Uncaught Error: Class "DOM\HTMLDocument" not found in /in/tXp91:26
Stack trace:
#0 {main}
thrown in /in/tXp91 on line 26
Process exited with code 255.