mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 15:07:11 +00:00
Update striptags.rst
This commit is contained in:
committed by
Fabien Potencier
parent
73de309fb4
commit
048f549017
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user