Just updated to 3.01 and this issue is still here. I’ve attached a patch file to show you how I fixed the issue.
diff --git wp-content/plugins/amazon-polly/includes/class-amazonpolly-pollycast.php wp-content/plugins/ama
zon-polly/includes/class-amazonpolly-pollycast.php
index bb55dc3a..6d6ae569 100644
--- wp-content/plugins/amazon-polly/includes/class-amazonpolly-pollycast.php
+++ wp-content/plugins/amazon-polly/includes/class-amazonpolly-pollycast.php
@@ -26,6 +26,7 @@ class Amazonpolly_PollyCast {
* @var string $podcast_name The slug of this podcast feed.
*/
private $podcast_name = 'amazon-pollycast';
+ static $podcast_rss = false;
/**
* Adds the custom feed endpoint.
@@ -233,6 +234,25 @@ class Amazonpolly_PollyCast {
return $tags_list;
}
+ /**
+ * Place at the begging of a Amazon polly feed
+ *
+ * @since 3.0.0
+ */
+ public function start_podcast_rss( ) {
+ self::$podcast_rss = true;
+ }
+
+ /**
+ * Place at the begging of a Amazon polly feed
+ *
+ * @since 3.0.0
+ */
+ public function end_podcast_rss( ) {
+ self::$podcast_rss = false;
+ }
+
+
/**
* Returns a HTML decoded version of the provided input for use inside CDATA.
*
@@ -241,7 +261,9 @@ class Amazonpolly_PollyCast {
* @return string The HTML decoded version of the provided input for use inside CDATA.
*/
public function filter_force_html_decode( $input ) {
- $input = wp_strip_all_tags( $input );
+ if (self::$podcast_rss) {
+ $input = wp_strip_all_tags( $input );
+ }
return html_entity_decode( $input, ENT_QUOTES, 'UTF-8' );
}
diff --git wp-content/plugins/amazon-polly/includes/template-amazon-pollycast.php wp-content/plugins/amazon-polly/includes/template-amazon-pollycast.php
index b711df2f..aeb78e65 100644
--- wp-content/plugins/amazon-polly/includes/template-amazon-pollycast.php
+++ wp-content/plugins/amazon-polly/includes/template-amazon-pollycast.php
@@ -34,6 +34,8 @@ $itunes_description = $amazon_pollycast->get_itunes_description();
$common = new AmazonAI_Common();
$itunes_author = $common->get_podcast_author();
+$amazon_pollycast->start_podcast_rss();
+
?>
<rss version="2.0"
@@ -135,3 +137,7 @@ $itunes_author = $common->get_podcast_author();
<?php endwhile; ?>
</channel>
</rss>
+
+<?php
+$amazon_pollycast->end_podcast_rss();
+?>