aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/doc/filters/striptags.rst
blob: 72c6f252f77f63ad1787b533be74def3b415fe8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
``striptags``
=============

The ``striptags`` filter strips SGML/XML tags and replace adjacent whitespace
by one space:

.. code-block:: jinja

    {{ some_html|striptags }}

.. note::

    Internally, Twig uses the PHP `strip_tags`_ function.

.. _`strip_tags`: http://php.net/strip_tags