These filters can be accessed using the string include Liquid::StandardFilters.
For example:
class PlaintextConverter
include Liquid::StandardFilters
def convert(content)
content = escape(content)
content = newline_to_br(content)
content
end
end
For a complete list of features that become available in this way, you can view the sourcestandardfilters.rb
source
share