Merge pull request #131 from eai04191/feature/resolver-fanza-tag-fix

FanzaResolverでdescriptionにある不要な`<>`を削除する
This commit is contained in:
shibafu 2019-03-08 23:05:13 +09:00 committed by GitHub
commit 3f0171fa8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ class FanzaResolver implements Resolver
if ($res->getStatusCode() === 200) {
$metadata = $this->ogpResolver->parse($res->getBody());
$metadata->image = preg_replace("~(pr|ps)\.jpg$~", 'pl.jpg', $metadata->image);
$metadata->description = str_replace('<>', '', $metadata->description);
return $metadata;
} else {