Remove standard exception rescue in escape filter.

This commit is contained in:
Dylan Thacker-Smith
2015-07-04 13:48:25 -04:00
parent 8cb2364179
commit 5a071cb7f2
+1 -1
View File
@@ -33,7 +33,7 @@ module Liquid
end end
def escape(input) def escape(input)
CGI.escapeHTML(input).untaint rescue input CGI.escapeHTML(input).untaint
end end
alias_method :h, :escape alias_method :h, :escape