module Jekyll::Algolia::Utils
def self.html_to_text(html)
Public: Convert an HTML string to its content only
def self.html_to_text(html) text = Nokogiri::HTML(html).text text.tr("\n", ' ').squeeze(' ').strip end
def self.html_to_text(html) text = Nokogiri::HTML(html).text text.tr("\n", ' ').squeeze(' ').strip end