You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proper XML tools deserve proper XML content. If you have Hpricot installed, atom-tools can convert HTML text elements to XHTML:
[:title, :content, :summary].each do |text_type|
if entry.send(text_type) and entry.send(text_type)["type"] == "html"
entry.send("#{text_type}=", entry.send(text_type).xml)
entry.send(text_type)["type"] = "xhtml"
end
end