mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
Revert "sanitize article content when importing data from feed"
This reverts commit c7fe1b4e9e.
Conflicts:
include/functions.php
include/rssfuncs.php
This commit is contained in:
@@ -61,7 +61,7 @@ class Handler_Public extends Handler {
|
||||
$tpl->setVariable('ARTICLE_EXCERPT',
|
||||
truncate_string(strip_tags($line["content_preview"]), 100, '...'), true);
|
||||
|
||||
$content = $line["content_preview"];
|
||||
$content = sanitize($this->link, $line["content_preview"], false, $owner_uid);
|
||||
|
||||
if ($line['note']) {
|
||||
$content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
|
||||
@@ -132,7 +132,7 @@ class Handler_Public extends Handler {
|
||||
$article['link'] = $line['link'];
|
||||
$article['title'] = $line['title'];
|
||||
$article['excerpt'] = truncate_string(strip_tags($line["content_preview"]), 100, '...');
|
||||
$article['content'] = $line["content_preview"];
|
||||
$article['content'] = sanitize($this->link, $line["content_preview"], false, $owner_uid);
|
||||
$article['updated'] = date('c', strtotime($line["updated"]));
|
||||
|
||||
if ($line['note']) $article['note'] = $line['note'];
|
||||
|
||||
Reference in New Issue
Block a user