lib/govspeak.rb in govspeak-1.2.5 vs lib/govspeak.rb in govspeak-1.3.0

- old
+ new

@@ -37,9 +37,13 @@ def to_sanitized_html HtmlSanitizer.new(to_html).sanitize end + def to_sanitized_html_without_images + HtmlSanitizer.new(to_html).sanitize_without_images + end + def to_text HTMLEntities.new.decode(to_html.gsub(/(?:<[^>]+>|\s)+/, " ").strip) end def valid?