From c8c9a26f3071edc2f0307336b6dd6062e4351773 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 13:26:41 +0300 Subject: move to simpler CDM handling of encoded content (instead of CENCW... etc) --- classes/feeds.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'classes/feeds.php') diff --git a/classes/feeds.php b/classes/feeds.php index cf9ca64c5..0c1db62b6 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -499,8 +499,10 @@ class Feeds extends Handler_Protected { $expanded_class = $expand_cdm ? "expanded" : "expandable"; - $tmp_content = "
"; + $content_encoded = htmlspecialchars(json_encode($line["content"])); + + $tmp_content = "
"; $tmp_content .= "
"; $tmp_content .= "
"; @@ -616,14 +618,7 @@ class Feeds extends Handler_Protected { } } - $tmp_content .= ""; - $tmp_content .= ""; - $tmp_content .= htmlspecialchars($line["content"]); - $tmp_content .= ""; - $tmp_content .= ""; - $tmp_content .= "
"; //cdmContentInner - $tmp_content .= "
"; $always_display_enclosures = $line["always_display_enclosures"]; -- cgit v1.2.3