Deprecated function: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated

Created on 16 February 2023, about 2 years ago
Updated 25 May 2023, almost 2 years ago

I'm using this module in Drupal 10 on PHP 8.2. This results in the following error:

Deprecated function: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in Drupal\smart_trim\TruncateHTML->init() (line 78 of /app/web/modules/contrib/smart_trim/src/TruncateHTML.php).

I will upload a patch in the comment section.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Ewout Goosmann

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024