Class: Banzai::Filter::HtmlEntityFilter

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

Overview

Text filter that escapes these HTML entities: & “ < >

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
# File 'lib/banzai/filter/html_entity_filter.rb', line 9

def call
  ERB::Util.html_escape(text)
end