Open alecpl opened 3 years ago
Here's why:
Masterminds\HTML5\Parser\CharacterReference::lookupDecimal()
mb_decode_numericentity()
Masterminds\HTML5\Parser\UTF8Utils::convertToUTF8()
This would allow to:
Actually utf8_decode() is deprecated in PHP 8.2, and will be removed later. So, this is more like a bug now.
sorry for the late reply. makes sense what you are suggesting. would be happy to see a PR
Here's why:
Masterminds\HTML5\Parser\CharacterReference::lookupDecimal()
usesmb_decode_numericentity()
unconditionally.Masterminds\HTML5\Parser\UTF8Utils::convertToUTF8()
either iconv or mbstring must be available (if the input encoding is not 'auto').This would allow to: