striptags
ΒΆ
The striptags
filter strips SGML/XML tags and replace adjacent whitespace
by one space:
{{ some_html|striptags }}
Note
Internally, Twig uses the PHP strip_tags function.
striptags
ΒΆThe striptags
filter strips SGML/XML tags and replace adjacent whitespace
by one space:
{{ some_html|striptags }}
Note
Internally, Twig uses the PHP strip_tags function.