.. include:: /Includes.rst.txt
.. _typo3-fluid-format-striptags:
================
format.stripTags
================
Removes tags from the given string (applying PHPs :php:`strip_tags()` function)
See https://www.php.net/manual/function.strip-tags.php.
Examples
========
Default notation
----------------
::
Some Text with Tags and an Ümlaut.
Some Text with Tags and an Ümlaut. :php:`strip_tags()` applied.
.. note::
Encoded entities are not decoded.
Default notation with allowedTags
---------------------------------
::
paragraph
spandivider
Output::
paragraph
spandivider
iframe
Inline notation
---------------
::
{text -> f:format.stripTags()}
Text without tags :php:`strip_tags()` applied.
Inline notation with allowedTags
--------------------------------
::
{text -> f:format.stripTags(allowedTags: "