CropViewHelper extends AbstractViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:format.crop>

FinalYes

ViewHelper which can crop (shorten) a text.

Whitespace within the <f:format.crop> element will be counted as characters.

  <f:format.crop maxCharacters="10" append="&hellip;[more]">
    This is some very long text
  </f:format.crop>
Tags
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-format-crop

Table of Contents

Properties

$escapeOutput  : bool
The output may contain HTML and can not be escaped.

Methods

initializeArguments()  : void
render()  : string

Properties

$escapeOutput

The output may contain HTML and can not be escaped.

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results