Update striptags.rst

This commit is contained in:
Peter Potrowl
2017-01-19 22:50:03 +01:00
committed by Fabien Potencier
parent 73de309fb4
commit 048f549017
+6
View File
@@ -12,4 +12,10 @@ by one space:
Internally, Twig uses the PHP `strip_tags`_ function.
As a consequence, a parameter, ``$allowable_tags``, can be provided. In this example, the tags like ``<br/>``, ``<br>``, ``<p>`` and ``</p>`` will remain in the string:
.. code-block:: jinja
{{ some_html|striptags('<br><p>') }}
.. _`strip_tags`: http://php.net/strip_tags