-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.2: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated #173
Comments
This should be resolved by the changes #172, the HTML encoding has been completely rewritten. I'll leave this open until that is merged. |
This issue is getting quite old now, and there doesn’t seem to be any movement on it. Have we give up all hope? Meanwhile, I was able to replace the offending line with: $elementMarkup = mb_encode_numericentity(htmlentities($elementMarkup, ENT_QUOTES, 'UTF-8' ), [0x80, 0x10FFFF, 0, ~0], 'UTF-8' ); This is more-or-less copied from one of the comments on |
Here is another option that works for me: $elementMarkup = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($elementMarkup, ENT_COMPAT, 'UTF-8')), ENT_QUOTES); |
Any chance on getting this resolved soon now that PHP 8.4 is out? |
Using the mbstring "encoding"
HTML-ENTITIES
is deprecated since PHP 8.2: php/php-src#7177It is used here:
parsedown-extra/ParsedownExtra.php
Line 628 in fd33d68
The text was updated successfully, but these errors were encountered: