Конструктор XML rails по умолчанию экранирует весь HTML, поэтому что-то вроде:
atom_feed do |feed|
@stories.each do |story|
feed.entry story do |entry|
entry.title story.title
entry.content "<b>foo</b>"
end
end
end
создаст текст:
<b>foo</b>
вместо: фу
Есть ли способ указать построителю XML не избегать XML?






оказывается тебе нужно сделать
entry.content "<b>foo</b>", :type => "html"
хотя упаковка его в CDATA останавливает его работу.
http://builder.rubyforge.org/classes/Builder/XmlMarkup.html
The special XML characters <, >, and & are converted to <, > and & automatically. Use the << operation to insert text without modification.
entry.content "type" => "html" do
entry.cdata!(post.content)
end