StandardFilters

- added escape_once, based on ActionView
This commit is contained in:
DBA
2010-08-23 01:30:00 +08:00
committed by Tobias Lütke
parent a48332871a
commit 29e140b655
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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