Skip to content

Commit 16bdc96

Browse files
committed
Update deprecated mb_convert_encoding
1 parent 2ee6935 commit 16bdc96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/FragmentsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FragmentsFactory
1111
public function fromHTML(string $html): Collection
1212
{
1313
$doc = new \DOMDocument();
14-
$html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
14+
$html = mb_encode_numericentity($html, [0x80, 0x10FFFF, 0, ~0], 'UTF-8');
1515

1616
libxml_use_internal_errors(true);
1717
$doc->loadHTML("<body>$html</body>");

0 commit comments

Comments
 (0)