We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fe58f0 commit 74e641cCopy full SHA for 74e641c
1 file changed
system/Test/DOMParser.php
@@ -61,8 +61,9 @@ public function getBody(): string
61
*/
62
public function withString(string $content)
63
{
64
- // converts all special characters to utf-8
65
- $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
+ // converts all special characters to HTML-Entities
+ $content = htmlentities($content);
66
+ $content = htmlspecialchars_decode($content);
67
68
// turning off some errors
69
libxml_use_internal_errors(true);
0 commit comments