descriptionにある不要な<>を削除する

This commit is contained in:
eai04191 2019-03-08 05:30:55 +09:00
parent ddd2a05607
commit a2f0beb3cb

View File

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