Class: HTML::Pipeline::PlainTextInputFilter
- Inherits:
-
TextFilter
- Object
- Filter
- TextFilter
- HTML::Pipeline::PlainTextInputFilter
- Defined in:
- lib/html/pipeline/plain_text_input_filter.rb
Overview
Simple filter for plain text input. HTML escapes the text input and wraps it in a div.
Instance Attribute Summary
Attributes inherited from TextFilter
Attributes inherited from Filter
Instance Method Summary collapse
Methods inherited from TextFilter
Methods inherited from Filter
#base_url, call, #can_access_repo?, #current_user, #doc, #has_ancestor?, #html, #initialize, #needs, #parse_html, #repository, to_document, to_html, #validate
Constructor Details
This class inherits a constructor from HTML::Pipeline::TextFilter
Instance Method Details
#call ⇒ Object
6 7 8 |
# File 'lib/html/pipeline/plain_text_input_filter.rb', line 6 def call "<div>#{EscapeUtils.escape_html(@text, false)}</div>" end |