Skip to content

Commit

Permalink
Minor doc update on builtin macros
Browse files Browse the repository at this point in the history
  • Loading branch information
obensonne committed Feb 20, 2012
1 parent 9ae27f1 commit 573cb06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -174,12 +174,12 @@ Currently, there is only one builtin macro available.

`htmlspecialchars(s)`

> Replace the characters that are special within HTML (&, <, > and ")
> with their equivalent character entity (e.g., &amp;). This should be
> called whenever an arbitrary string is inserted into HTML (so in most
> places where you use `{{ variable }}` in your templates).
> Replace the characters that are special within HTML (`&`, `<`, `>` and `"`)
> with their equivalent character entity (e.g., `&amp;`). This should be
> called whenever an arbitrary string is inserted into HTML (i.e. use
> `{{ htmlspecialchars(variable) }}` instead of `{{ variable }}`).
>
> Note that " is not special in most HTML, only within attributes.
> Note that `"` is not special in most HTML, only within attributes.
> However, since escaping it does not hurt within normal HTML, it is
> just escaped unconditionally.
Expand Down

0 comments on commit 573cb06

Please sign in to comment.