lib/microby/h_entry.rb in microby-0.0.1 vs lib/microby/h_entry.rb in microby-0.0.2
- old
+ new
@@ -26,17 +26,20 @@
when 'h-card'
self.author = HCard.new(microformat)
when 'p-category'
self.categories[microformat.text.gsub('\n', " ").strip] = microformat["href"]
when 'e-content'
- self.content = microformat.inner_html
+ self.content = parse_content(microformat)
when'dt-published'
self.published_at = microformat["datetime"]
when "u-uid"
self.bookmark = microformat["href"]
else
self[symbolize_class(klass)] = microformat.text.gsub('\n', " ").strip
end
end
+ def parse_content(microformat)
+ microformat.inner_html
+ end
end
end
\ No newline at end of file