We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb7c9b commit 7695855Copy full SHA for 7695855
src/Http/Response.php
@@ -51,7 +51,7 @@ public function getHtmlContent()
51
52
$this->htmlContent = new DOMDocument();
53
54
- if ((mb_detect_encoding($content) === 'UTF-8') && mb_check_encoding($content, 'UTF-8')) {
+ if (mb_detect_encoding($content) === 'UTF-8') {
55
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
56
$content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">', $content);
57
}
0 commit comments