lib/feedjira/preprocessor.rb in feedjira-3.1.1 vs lib/feedjira/preprocessor.rb in feedjira-3.1.2
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Feedjira
class Preprocessor
def initialize(xml)
@xml = xml
end
@@ -16,10 +18,10 @@
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"]' # rubocop:disable Metrics/LineLength
+ doc.search 'entry > content[type="xhtml"], entry > summary[type="xhtml"], entry > title[type="xhtml"]'
end
def raw_html(node)
node.search("./div").inner_html
end