mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
StandardFilters
- added escape_once, based on ActionView
This commit is contained in:
@@ -29,6 +29,10 @@ module Liquid
|
||||
CGI.escapeHTML(input) rescue input
|
||||
end
|
||||
|
||||
def escape_once(input)
|
||||
ActionView::Helpers::TagHelper.escape_once(input) rescue input
|
||||
end
|
||||
|
||||
alias_method :h, :escape
|
||||
|
||||
# Truncate a string down to x characters
|
||||
|
||||
Reference in New Issue
Block a user