Permalink
Browse files

steal Escaping section from mustache.js

  • Loading branch information...
defunkt committed Mar 6, 2010
1 parent dd5ced9 commit 6eb4df01556aaa89814ab6d939353df068ce7801
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
@@ -102,6 +102,19 @@ the `mustache(5)` manpage or
<http://defunkt.github.com/mustache/mustache.5.html>.
+Escaping
+--------
+
+Mustache does escape all values when using the standard double
+Mustache syntax. Characters which will be escaped: `& \ " < >`. To
+disable escaping, simply use tripple mustaches like
+`{{{unescaped_variable}}}`.
+
+Example: Using `{{variable}}` inside a template for `5 > 2` will
+result in `5 &gt; 2`, where as the usage of `{{{variable}}}` will
+result in `5 > 2`.
+
+
Dict-Style Views
----------------

0 comments on commit 6eb4df0

Please sign in to comment.