Corrections sur le flux pour validation

This commit is contained in:
echarp 2014-06-27 11:54:01 +02:00
parent 666c3ff32b
commit 9da68e24e5

View File

@ -34,7 +34,11 @@ xml.rdf :RDF, 'xmlns:rdf' => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
content = render file: '/events/show.html', locals: { rss: true }
xml.description strip_tags content
xml.content(:encoded) { xml.cdata! content.to_s }
xml.content(:encoded) {
xml.cdata! sanitize content,
tags: %w(p br table tr td ul ol li a strong b em i img),
attributes: %w(href src width height)
}
end
end
end