lib/jkl/text_client.rb in jakal-0.1.96 vs lib/jkl/text_client.rb in jakal-0.2.0

- old
+ new

@@ -1,12 +1,11 @@ module Jkl module Text class << self - def sanitize(text, words_on_line = 5) - remove_short_lines(strip_all_tags(remove_script_tags(text)), words_on_line) + def plain_text(document, words_on_line = 5) + remove_short_lines(strip_all_tags(remove_script_tags(document)), words_on_line) end - alias :clean :sanitize def strip_all_tags(text) text.gsub(/<\/?[^>]*>/, "") end