0
0
Fork 0

Use <summary> to encode content warnings instead

This commit is contained in:
Eugen Rochko 2017-01-25 16:53:30 +01:00
parent 0430f7c0fa
commit 3beb24ad55
4 changed files with 5 additions and 8 deletions

View file

@ -42,9 +42,8 @@ module AtomBuilderHelper
end
def content(xml, content, warning = nil)
extra = { type: 'html' }
extra[:warning] = warning unless warning.blank?
xml.content(extra, content) unless content.blank?
xml.summary(warning) unless warning.blank?
xml.content({ type: 'html' }, content) unless content.blank?
end
def title(xml, title)