Synopsis returns an empty h2 tag.

Issue #74 resolved
sher afgan created an issue

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)

  1. Log in to comment