4 The ``striptags`` filter strips SGML/XML tags and replace adjacent whitespace
9 {{ some_html|striptags }}
11 You can also provide tags which should not be stripped:
15 {{ some_html|striptags('<br><p>') }}
17 In this example, the ``<br/>``, ``<br>``, ``<p>``, and ``</p>`` tags won't be
18 removed from the string.
22 Internally, Twig uses the PHP `strip_tags`_ function.
27 * ``allowable_tags``: Tags which should not be stripped
29 .. _`strip_tags`: http://php.net/strip_tags