docs: `<body>, |safe`

This commit is contained in:
defuz 2014-11-05 07:27:25 +03:00
parent 17eee81da0
commit 0bb4de1e3b
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ arguments will be inserted as HTML attributes. So for example you can
call ``render_field(form.username, class='username')`` to add a class to
the input element. Note that WTForms returns standard Python unicode
strings, so we have to tell Jinja2 that this data is already HTML escaped
with the `|safe` filter.
with the ``|safe`` filter.
Here the :file:`register.html` template for the function we used above which
takes advantage of the :file:`_formhelpers.html` template: