af_readability: sanitize content requested for embedding

This commit is contained in:
Andrew Dolgov 2020-02-27 08:28:54 +03:00
parent 3b635c7557
commit b159bbe55d
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class Af_Readability extends Plugin {
$ret = []; $ret = [];
if ($row = $sth->fetch()) { if ($row = $sth->fetch()) {
$ret["content"] = $this->extract_content($row["link"]); $ret["content"] = sanitize($this->extract_content($row["link"]));
} }
print json_encode($ret); print json_encode($ret);