Module: EncodeFilter
- Defined in:
- lib/liquidum/liquid/filters/encode_filter.rb
Instance Method Summary collapse
-
#encode(input, encoding, options = {}) ⇒ Object
Encode text.
Instance Method Details
#encode(input, encoding, options = {}) ⇒ Object
Encode text
Example:
<div class="summary">{{title | encode: 'utf-8'}}</div>
9 10 11 |
# File 'lib/liquidum/liquid/filters/encode_filter.rb', line 9 def encode(input, encoding, = {}) input.encode(encoding) end |