Class: Banzai::Filter::ConvertTextToDocFilter

Inherits:
HTML::Pipeline::Filter
  • Object
show all
Defined in:
lib/banzai/filter/convert_text_to_doc_filter.rb

Overview

This simply forces the conversion of text (which is usually just converted HTML) into a nokogiri document. Forcing this to be done here allows us to understand the performance of this step. Otherwise it is done in the next filter anyway.

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
# File 'lib/banzai/filter/convert_text_to_doc_filter.rb', line 10

def call
  doc
end