descriptionにある不要な<>
を削除する
This commit is contained in:
parent
ddd2a05607
commit
a2f0beb3cb
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user