diff --git a/bridges/BakaUpdatesMangaReleasesBridge.php b/bridges/BakaUpdatesMangaReleasesBridge.php index eeeeb4d7..cde9be84 100644 --- a/bridges/BakaUpdatesMangaReleasesBridge.php +++ b/bridges/BakaUpdatesMangaReleasesBridge.php @@ -31,7 +31,7 @@ class BakaUpdatesMangaReleasesBridge extends BridgeAbstract { ); if (isset($rows[0][1])) { - $this->feedName = html_entity_decode($rows[0][1]->plaintext); + $this->feedName = $this->filterHTML($rows[0][1]->plaintext); } foreach($rows as $cols) { @@ -48,8 +48,8 @@ class BakaUpdatesMangaReleasesBridge extends BridgeAbstract { $objTitle = $cols[1]; if ($objTitle) { - $title[] = html_entity_decode($objTitle->plaintext); - $item['content'] .= '

Series: ' . $objTitle->innertext . '

'; + $title[] = $this->filterHTML($objTitle->plaintext); + $item['content'] .= '

Series: ' . $this->filterText($objTitle->innertext) . '

'; } $objVolume = $cols[2]; @@ -62,8 +62,8 @@ class BakaUpdatesMangaReleasesBridge extends BridgeAbstract { $objAuthor = $cols[4]; if ($objAuthor && !empty($objAuthor->plaintext)) { - $item['author'] = html_entity_decode($objAuthor->plaintext); - $item['content'] .= '

Groups: ' . $objAuthor->innertext . '

'; + $item['author'] = $this->filterHTML($objAuthor->plaintext); + $item['content'] .= '

Groups: ' . $this->filterText($objAuthor->innertext) . '

'; } $item['title'] = implode(' ', $title); @@ -88,4 +88,12 @@ class BakaUpdatesMangaReleasesBridge extends BridgeAbstract { } return parent::getName(); } + + private function filterText($text) { + return rtrim($text, '*'); + } + + private function filterHTML($text) { + return $this->filterText(html_entity_decode($text)); + } }