module ActsAsContentHighlightable
Constants
- VERSION
Public Class Methods
extract_text_from_html(text)
click to toggle source
# File lib/acts_as_content_highlightable.rb, line 16 def self.extract_text_from_html(text) return nil unless text.is_a? String return ActsAsContentHighlightable::HtmlNodeParser.new(text).body_text end