Sha256: a73a1e4d45da5871a3b2a27d339d045d61a78c202b173e9bf3331d071ca038df
Contents?: true
Size: 352 Bytes
Versions: 11
Compression:
Stored size: 352 Bytes
Contents
HTML::Pipeline.require_dependency('escape_utils', 'PlainTextInputFilter') 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
11 entries across 11 versions & 1 rubygems