Corrections sur le flux pour validation
This commit is contained in:
parent
666c3ff32b
commit
9da68e24e5
@ -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 }
|
content = render file: '/events/show.html', locals: { rss: true }
|
||||||
|
|
||||||
xml.description strip_tags content
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user