Revert "api: escape newlines in headline content HTML object"
This reverts commit ed43a73369
.
This commit is contained in:
parent
69c1c62992
commit
0a5507d3bd
|
@ -815,6 +815,7 @@ class API extends Handler {
|
||||||
$headline_row["excerpt"] = $line["content_preview"];
|
$headline_row["excerpt"] = $line["content_preview"];
|
||||||
|
|
||||||
if ($show_content) {
|
if ($show_content) {
|
||||||
|
|
||||||
if ($sanitize_content) {
|
if ($sanitize_content) {
|
||||||
$headline_row["content"] = Sanitizer::sanitize(
|
$headline_row["content"] = Sanitizer::sanitize(
|
||||||
$line["content"],
|
$line["content"],
|
||||||
|
@ -867,8 +868,6 @@ class API extends Handler {
|
||||||
$hook_object);
|
$hook_object);
|
||||||
|
|
||||||
$headline_row["content"] = DiskCache::rewrite_urls($headline_row['content']);
|
$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);
|
array_push($headlines, $headline_row);
|
||||||
|
|
Loading…
Reference in New Issue