You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Parsedown Extra library causes a PHP deprecated error in PHP 8.1 or later:
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php
The 2.0 branch of the library seem to have fixed this: erusev/parsedown-extra#173 but I wouldn't know how to integrate the 2.0.x versions (Parsedown and Parsedown Extra) into the module.
Temporary fix:
Replacing line #628 with the following makes the warning go away: $elementMarkup = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($elementMarkup, ENT_COMPAT, 'UTF-8')), ENT_QUOTES);
The above solution was found in the following Drupal thread: https://www.drupal.org/project/smart_trim/issues/3342481
The text was updated successfully, but these errors were encountered:
The Parsedown Extra library causes a PHP deprecated error in PHP 8.1 or later:
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php
The 2.0 branch of the library seem to have fixed this: erusev/parsedown-extra#173 but I wouldn't know how to integrate the 2.0.x versions (Parsedown and Parsedown Extra) into the module.
Temporary fix:
Replacing line #628 with the following makes the warning go away:
$elementMarkup = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($elementMarkup, ENT_COMPAT, 'UTF-8')), ENT_QUOTES);
The above solution was found in the following Drupal thread: https://www.drupal.org/project/smart_trim/issues/3342481
The text was updated successfully, but these errors were encountered: