af_readability: sanitize content requested for embedding
This commit is contained in:
parent
3b635c7557
commit
b159bbe55d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue