From 42b3f961a61647ad5815b1561fb020c89c25d94f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 May 2013 11:30:13 +0100 Subject: [PATCH 1/1] Use CDATA for note descriptions in the RSS feed --- app/views/notes/feed.rss.builder | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/notes/feed.rss.builder b/app/views/notes/feed.rss.builder index f17be09cb..df35b70d3 100644 --- a/app/views/notes/feed.rss.builder +++ b/app/views/notes/feed.rss.builder @@ -25,7 +25,9 @@ xml.rss("version" => "2.0", xml.link url_for(:controller => "browse", :action => "note", :id => comment.note.id, :only_path => false) xml.guid url_for(:controller => "browse", :action => "note", :id => comment.note.id, :only_path => false) - xml.description render(:partial => "entry", :object => comment, :formats => [ :html ]) + xml.description do + xml.cdata! render(:partial => "entry", :object => comment, :formats => [ :html ]) + end if comment.author xml.author comment.author.display_name -- 2.39.5