Move filter test results HTML building to the frontend.

This commit is contained in:
wn_
2025-02-15 20:39:25 +00:00
parent e0d9ffcbc1
commit 777c2b4c97
2 changed files with 10 additions and 11 deletions

View File

@@ -151,10 +151,12 @@ class Pref_Filters extends Handler_Protected {
},
$entry, $excerpt_length);
$rv['items'][] = "<li><span class='title'>" . $entry["title"] . "</span><br/>" .
"<span class='feed'>" . $entry['feed_title'] . "</span>, <span class='date'>" . mb_substr($entry["date_entered"], 0, 16) . "</span>" .
"<div class='preview text-muted'>" . $entry["content_preview"] . "</div>" .
"</li>";
$rv['items'][] = [
'title' => $entry['title'],
'feed_title' => $entry['feed_title'],
'date' => mb_substr($entry['date_entered'], 0, 16),
'content_preview' => $entry['content_preview'],
];
}
}