diff options
Diffstat (limited to 'vendor/twig/twig/doc/filters/striptags.rst')
-rw-r--r-- | vendor/twig/twig/doc/filters/striptags.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/twig/twig/doc/filters/striptags.rst b/vendor/twig/twig/doc/filters/striptags.rst new file mode 100644 index 00000000..72c6f252 --- /dev/null +++ b/vendor/twig/twig/doc/filters/striptags.rst | |||
@@ -0,0 +1,15 @@ | |||
1 | ``striptags`` | ||
2 | ============= | ||
3 | |||
4 | The ``striptags`` filter strips SGML/XML tags and replace adjacent whitespace | ||
5 | by one space: | ||
6 | |||
7 | .. code-block:: jinja | ||
8 | |||
9 | {{ some_html|striptags }} | ||
10 | |||
11 | .. note:: | ||
12 | |||
13 | Internally, Twig uses the PHP `strip_tags`_ function. | ||
14 | |||
15 | .. _`strip_tags`: http://php.net/strip_tags | ||