Module: EncodeFilter

Defined in:
lib/liquidum/liquid/filters/encode_filter.rb

Instance Method Summary collapse

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, options = {})
  input.encode(encoding)
end