Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
websevendev committed Dec 16, 2021
1 parent 73f6302 commit aa1a2a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion animations-for-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/html-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function get_dom($html) {
$dom = new DOMDocument();
$libxml_previous_state = libxml_use_internal_errors(true);
$dom->loadHTML('<html><body>' . trim($html) . '</body></html>');
$dom->loadHTML('<html><body>' . mb_convert_encoding(trim($html), 'HTML-ENTITIES', 'UTF-8') . '</body></html>');
libxml_clear_errors();
libxml_use_internal_errors($libxml_previous_state);
return $dom;
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit aa1a2a8

Please sign in to comment.