Class: Banzai::Filter::NormalizeSourceFilter
- Inherits:
-
HTML::Pipeline::Filter
- Object
- HTML::Pipeline::Filter
- Banzai::Filter::NormalizeSourceFilter
- Defined in:
- lib/banzai/filter/normalize_source_filter.rb
Constant Summary collapse
- UTF8_BOM =
"\xEF\xBB\xBF"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 |
# File 'lib/banzai/filter/normalize_source_filter.rb', line 8 def call # Remove UTF8_BOM from beginning of source text html.delete_prefix(UTF8_BOM) end |