Synopsis returns an empty h2 tag.
Issue #74
resolved
The synopsis of all anime has an empty h2 tag at the end.
Current AnimeParser.php line 252:
$extracted = preg_replace("/<h2>.*?<\/h2>(.*?)<div.*$/is", "$1", $rawSynopsis);
But if you replace it with the following it won't select the last h2 tag.
$extracted = preg_replace("/<h2>.*?<\/h2>(.*?)<h2.*$/is", "$1", $rawSynopsis);
I don't think there are other h2 tags besides headings in the right column.
Comments (3)
-
-
I forgot this entirely. My apologies.
-
- changed status to resolved
- Log in to comment
Thanks! I will test it tomorrow to be 100% sure.