From: Tom Hughes Date: Tue, 7 May 2013 10:30:13 +0000 (+0100) Subject: Use CDATA for note descriptions in the RSS feed X-Git-Tag: live~5068 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/42b3f961a61647ad5815b1561fb020c89c25d94f Use CDATA for note descriptions in the RSS feed --- 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