class Liquid::Filters::EscapeOnce

Overview

escape

Escapes a string by replacing characters with escape sequences (so that the string can be used in a URL, for example). It doesn’t change strings that don’t have anything to escape.

Input {{ "1 < 2 & 3" | escape_once }}

Output 1 < 2 & 3

Input {{ "1 < 2 & 3" | escape_once }}

Output 1 < 2 & 3

Extended Modules

Defined in:

liquid/filters/escape_once.cr

Class Method Summary

Class Method Detail

def self.filter(data : Any, args : Array(Any) | Nil = nil) : Any #

[View source]