Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add arguments to escape filter docs

  • Loading branch information...
commit 6df3fe59de057be2e22ba8263bf30224cac611d1 1 parent 39a1eee
@paularmstrong authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 docs/filters.md
View
6 docs/filters.md
@@ -196,10 +196,14 @@ If the variable is `undefined`, `null`, or `false`, a default return value can b
1. <var>**value**</var> (_mixed_) Fallback value if the variable is falsy.
-### escape / e
+### escape([type]) / e([type])
Force escape the output of the variable. Optionally use `e` as a shortcut filter name.
+#### Arguments
+
+1. <var>**type**</var> (_string_) _optional_ passing "js" as the type will force JavaScript-safe escaping.
+
### first
Returns the first element of an array. Uses [underscore.js first](http://documentcloud.github.com/underscore/#first)
Please sign in to comment.
Something went wrong with that request. Please try again.