f:format.stripTags

Removes tags from the given string (applying PHPs strip_tags() function). http://www.php.net/manual/function.strip-tags.php

Properties

value

Variable type
String
Description
String to format.
Default value
NULL
Mandatory
No

allowedTags

Variable type
String
Description
Optional string of allowed tags as required by PHPs strip_tags() function.
Default value
NULL
Mandatory
No

Examples

Default notation

<f:format.stripTags>Some Text with <b>Tags</b> and an &Uuml;mlaut.</f:format.stripTags>

Some Text with Tags and an &Uuml;mlaut.
(strip_tags() applied. Note: encoded entities are not decoded)

Inline notation

{text -> f:format.stripTags()}

Text without tags
(strip_tags() applied)