a Sensio Labs Product

The flexible, fast, and secure
template engine for PHP

Filters » striptags

Questions & Feedback

License

Twig documentation is licensed under the new BSD license.

striptagsΒΆ

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

1
{{ some_html|striptags }}

Note

Internally, Twig uses the PHP strip_tags function.

This website is powered by PHP and Twig. The Twig logo is © 2010-2012 Sensio Labs