From 2825cf28cae6f0b3191746f213fa08450f4d4fbf Mon Sep 17 00:00:00 2001 From: Wasim Akhtar <53761154+WasimM3@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:22:15 +0530 Subject: [PATCH] #4342 - HTML entity issue fixed --- templates/features.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/features.php b/templates/features.php index d4bdb5113..6991afad0 100644 --- a/templates/features.php +++ b/templates/features.php @@ -8005,7 +8005,7 @@ function ampforwp_process_last_filter_content($content){ $node->parentNode->removeChild($node); } } - $content = $comp_dom->saveHTML(); + $content = html_entity_decode($comp_dom->saveHTML()); return $content; } @@ -8413,7 +8413,7 @@ function ampforwp_rank_math_external_link_newtab($content){ } } } - $content = $comp_dom->saveHTML(); + $content = html_entity_decode($comp_dom->saveHTML()); } return $content; } @@ -8623,7 +8623,7 @@ function ampforwp_wp_rocket_compatibility($content){ } } } - $content = $comp_dom->saveHTML(); + $content = html_entity_decode($comp_dom->saveHTML()); } } return $content;