TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
StripTagsViewHelper Class Reference
Inheritance diagram for StripTagsViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

 $escapeOutput = false
 
 $escapeChildren = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

Removes tags from the given string (applying PHPs strip_tags() function)

See also
http://www.php.net/manual/function.strip-tags.php

= Examples =

<f:format.stripTags>Some Text with Tags and an Ümlaut.</f:format.stripTags> <output> Some Text with Tags and an Ümlaut. (strip_tags() applied. Note: encoded entities are not decoded) </output>

{text -> f:format.stripTags()} <output> Text without tags (strip_tags() applied) </output>

Definition at line 43 of file StripTagsViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize ViewHelper arguments

Returns
void
Exceptions
TYPO3Fluid

Definition at line 58 of file StripTagsViewHelper.php.

render ( )

Escapes special characters with their escaped counterparts as needed using PHPs strip_tags() function.

Returns
mixed
See also
http://www.php.net/manual/function.strip-tags.php

Definition at line 79 of file StripTagsViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Applies strip_tags() on the specified value.

Parameters
array$arguments
\Closure$renderChildrenClosure
\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
string

Definition at line 102 of file StripTagsViewHelper.php.

Member Data Documentation

$escapeChildren = false
protected

Definition at line 70 of file StripTagsViewHelper.php.

$escapeOutput = false
protected

Definition at line 50 of file StripTagsViewHelper.php.