]> git.ipfire.org Git - thirdparty/jinja.git/commit
Custom Filters example inserts escaped <br>s 343/head
authorJörn Hees <dev@joernhees.de>
Sun, 15 Jun 2014 16:31:16 +0000 (18:31 +0200)
committerJörn Hees <dev@joernhees.de>
Sun, 15 Jun 2014 16:31:16 +0000 (18:31 +0200)
commit1702451edc6c2088b8fe83d6670dfb9ccbaf6026
tree0f91f00f67de34792115c86f9b22db47f6ba2c1b
parentc97fa109d38b5367ce3efffb6e435d007dc55920
Custom Filters example inserts escaped <br>s

The example nl2br custom filter inserts escaped `&lt;br&gt;` <br> tags as a `Markup.replace` method seems to be aware of modifications and pass `str`/`unicode` arguments through `escape`.
docs/api.rst