lib/feedjira/preprocessor.rb in feedjira-2.0.0 vs lib/feedjira/preprocessor.rb in feedjira-2.1.0

- old
+ new

@@ -16,14 +16,14 @@ node.content = raw_html(node) unless node.cdata? end end def content_nodes - doc.search 'entry > content[type="xhtml"], entry > summary[type="xhtml"], entry > title[type="xhtml"]' + doc.search 'entry > content[type="xhtml"], entry > summary[type="xhtml"], entry > title[type="xhtml"]' # rubocop:disable Metrics/LineLength end def raw_html(node) - CGI.unescape_html node.search('./div').inner_html + node.search('./div').inner_html end def doc @doc ||= Nokogiri::XML(@xml).remove_namespaces! end