Method: Html2rss::AttributePostProcessors::SanitizeHtml.get
- Defined in:
- lib/html2rss/attribute_post_processors/sanitize_html.rb
.get(html, url) ⇒ Object
Shorthand method to get the sanitized HTML.
50 51 52 53 54 55 |
# File 'lib/html2rss/attribute_post_processors/sanitize_html.rb', line 50 def self.get(html, url) raise ArgumentError, 'url must be a String or Addressable::URI' if url.to_s.empty? return nil if html.to_s.empty? new(html, { config: Config::Channel.new({ url: }) }).get end |