diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d68180..b47c0c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ###Changelog +####1.1.2 + +* Really, REALLY fixed the problem this time. + ####1.1.1 * Really fixed the problem this time. diff --git a/README.md b/README.md index 6c33e91..37625fe 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Tags: kindle, ebook, periodical, publisher, magazine, electronic, amazon Requires at least: 3.2.0 Tested up to: 4.1.0 - Stable Tag: 1.1.1 + Stable Tag: 1.1.2 License : GPLv2 or later License URI : http://www.gnu.org/licenses/gpl-2.0.html diff --git a/includes/KindleFeed.class.php b/includes/KindleFeed.class.php index 31145af..64a02fb 100644 --- a/includes/KindleFeed.class.php +++ b/includes/KindleFeed.class.php @@ -372,7 +372,9 @@ public function strip_content($data_str) { // Thoughts from: http://syrkos.com/blog/2013/04/25/make-html-xhtml-compliant-without-tidy/ // Helper: http://regexr.com/ public function fix_bad_xml($xml) { - $xml = preg_replace("/\/]+)\>/i", "", $xml); + // TODO: Need to get this to ignore tags that have the end and add to those that don't + // @link: http://stackoverflow.com/questions/8906503/preg-replace-to-put-forward-slash-in-img-tag + $xml = preg_replace("/]+)(?/is", "", $xml); $xml = preg_replace("/