Problem/Motivation
When using PHP 8.2, the following warning is displayed repeatedly:
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /var/www/html/docroot/modules/contrib/media_link_enhancements/src/MediaLinkEnhancementsAlterLinks.php on line 98
Steps to reproduce
Install version 1.0.4 on a Drupal site with PHP 8.2 and go to any page.
Proposed resolution
Switch from using mb_convert_encoding to use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead.
Remaining tasks
Make PR with fix.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
samlerner commentedComment #3
samlerner commentedComment #5
keshavv commentedLGTM
Comment #6
cameron prince commentedThis has been merged and 1.0.5 cut. Thanks!