diff --git a/animations-for-blocks.php b/animations-for-blocks.php index 16f9106..a918aa5 100644 --- a/animations-for-blocks.php +++ b/animations-for-blocks.php @@ -3,7 +3,7 @@ * Plugin Name: Animations for Blocks * Plugin URI: https://wordpress.org/plugins/animations-for-blocks * Description: Allows to add animations to Gutenberg blocks on scroll. - * Version: 1.0.1 + * Version: 1.0.2 * Author: websevendev * Author URI: https://chap.website/author/websevendev */ diff --git a/includes/html-helpers.php b/includes/html-helpers.php index b95ce02..f5a0b80 100644 --- a/includes/html-helpers.php +++ b/includes/html-helpers.php @@ -16,7 +16,7 @@ function get_dom($html) { $dom = new DOMDocument(); $libxml_previous_state = libxml_use_internal_errors(true); - $dom->loadHTML('' . trim($html) . ''); + $dom->loadHTML('' . mb_convert_encoding(trim($html), 'HTML-ENTITIES', 'UTF-8') . ''); libxml_clear_errors(); libxml_use_internal_errors($libxml_previous_state); return $dom; diff --git a/readme.txt b/readme.txt index 3a7c07b..f0a71d1 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: gutenberg, block, animation, animate, scroll, fade, flip, slide, zoom, mov Requires at least: 5.6 Tested up to: 5.8 Requires PHP: 5.4 -Stable tag: 1.0.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -64,6 +64,9 @@ When none of the animated elements show up on your site it's possibly due to a J == Changelog == += 1.0.2 = +* Fix encoding for dynamic blocks. + = 1.0.1 = * Add more unsupported blocks. * Move Animation Container block to "Design" category.