CssToInlineStyles icon indicating copy to clipboard operation
CssToInlineStyles copied to clipboard

PHP 8.2 compatibility

Open Ugoku opened this issue 2 years ago • 0 comments

This line has been deprecated in PHP 8.2: $document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8')); (/src/CssToInlineStyles.php on line 116)

Symfony fixed it like this, but YMMV:

mb_encode_numericentity($html, [0x80, 0xFFFF, 0, 0xFFFF], 'UTF-8');

I'll try this and will submit a PR if it works :)

Ugoku avatar Aug 05 '22 09:08 Ugoku