helper methods for preprocessing
Alias for _p
[Source]
# File erubis/preprocessing.rb, line 42 def _P(arg) return "<%=h(#{arg})%>" end
# File erubis/preprocessing.rb, line 48 def _decode(arg) arg = arg.to_s arg.gsub!(/%3C%25(?:=|%3D)(.*?)%25%3E/) { "<%=#{CGI.unescape($1)}%>" } arg.gsub!(/<%=(.*?)%>/) { "<%=#{CGI.unescapeHTML($1)}%>" } return arg end
# File erubis/preprocessing.rb, line 38 def _p(arg) return "<%=#{arg}%>" end
[Validate]