diff --git a/bridges/BakaUpdatesMangaReleasesBridge.php b/bridges/BakaUpdatesMangaReleasesBridge.php index eeeeb4d75a6..cde9be84711 100644 --- a/bridges/BakaUpdatesMangaReleasesBridge.php +++ b/bridges/BakaUpdatesMangaReleasesBridge.php @@ -31,7 +31,7 @@ public function collectData() { ); 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 @@ public function collectData() { $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 @@ public function collectData() { $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 @@ public function getName(){ } return parent::getName(); } + + private function filterText($text) { + return rtrim($text, '*'); + } + + private function filterHTML($text) { + return $this->filterText(html_entity_decode($text)); + } }