mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-11 11:01:17 +02:00
api: escape newlines in headline content HTML object
This commit is contained in:
parent
e31636bf97
commit
ed43a73369
@ -815,7 +815,6 @@ class API extends Handler {
|
||||
$headline_row["excerpt"] = $line["content_preview"];
|
||||
|
||||
if ($show_content) {
|
||||
|
||||
if ($sanitize_content) {
|
||||
$headline_row["content"] = Sanitizer::sanitize(
|
||||
$line["content"],
|
||||
@ -868,6 +867,8 @@ class API extends Handler {
|
||||
$hook_object);
|
||||
|
||||
$headline_row["content"] = DiskCache::rewrite_urls($headline_row['content']);
|
||||
$headline_row["content"] = str_replace(["\r", "\n"], ["\\r", "\\n"], $headline_row["content"]);
|
||||
|
||||
}
|
||||
|
||||
array_push($headlines, $headline_row);
|
||||
|
Loading…
x
Reference in New Issue
Block a user