Sha256: e321e4e425c0171b799a2b004b4e1c2f4512e4d0e4de81d593e11a7afcbd415d

Contents?: true

Size: 276 Bytes

Versions: 17

Compression:

Stored size: 276 Bytes

Contents

module HTML
  class Pipeline
    # Simple filter for plain text input. HTML escapes the text input and wraps it
    # in a div.
    class PlainTextInputFilter < TextFilter
      def call
        "<div>#{EscapeUtils.escape_html(@text, false)}</div>"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
html-pipeline-0.3.1 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.3.0 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.2.1 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.2.0 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.1.0 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.14 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.13 lib/html/pipeline/plain_text_input_filter.rb
geothird-html-pipeline-0.0.12 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.12 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.11 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.10 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.8 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.7 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-no-charlock-0.0.6 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.6 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.5 lib/html/pipeline/plain_text_input_filter.rb
html-pipeline-0.0.4 lib/html/pipeline/plain_text_input_filter.rb