module Html2rss module ItemExtractors ## # Return the HTML of the attribute. # # Imagine this HTML structure: # #
Lorem ipsum dolor ...
# # YAML usage example: # # selectors: # description: # selector: p # extractor: html # # Would return: # 'Lorem ipsum dolor ...
' # # Always make sure to sanitize the HTML during post processing with # {AttributePostProcessors::SanitizeHtml}[rdoc-ref:Html2rss::AttributePostProcessors::SanitizeHtml]. class Html def initialize(xml, options) @element = ItemExtractors.element(xml, options) end ## # @return [String] def get @element.to_s end end end end