Method: Html2rss::AttributePostProcessors::SanitizeHtml#get
- Defined in:
- lib/html2rss/attribute_post_processors/sanitize_html.rb
#get ⇒ String
59 60 61 62 |
# File 'lib/html2rss/attribute_post_processors/sanitize_html.rb', line 59 def get sanitized_html = Sanitize.fragment(value, sanitize_config) sanitized_html.to_s.gsub(/\s+/, ' ').strip end |