Skip to content

Release v1.2.1 - Fix HTML encoding

Latest

Choose a tag to compare

@robertandrews robertandrews released this 28 Dec 21:36
· 12 commits to main since this release

This release is a X.X.1 fix for 1.2.0.

Before the plugin analyses post content using DOMDocument, mb_convert_encoding() was used to ensure post content HTML is property encoded (HTML entities, UTF-8).

However, use of "HTML-ENTITIES" with mb_convert_encoding() was deprecated in PHP 8.2.

PHP Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in ...

This workaround switches three instances of mb_convert_encoding() to htmlentities().

Full Changelog: v1.2.0...v1.2.1