CropViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Format\CropViewHelper

Extends
AbstractViewHelper

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

__construct()  : mixed
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