HtmlViewHelper extends AbstractViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:transform.html>

FinalYes

ViewHelper to transform HTML and substitute internal link scheme aspects.

  <f:transform.html selector="a.href" onFailure="removeEnclosure">
      <a href="t3://page?uid=1" class="home">Home</a>
  </f:transform.html>
Tags
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-transform-html

Table of Contents

Constants

MAP_ON_FAILURE  = ['' => 0, 'null' => 0, 'removeTag' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_TAG_ON_FAILURE, 'removeAttr' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_ATTR_ON_FAILURE, 'removeEnclosure' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_ENCLOSURE_ON_FAILURE]

Properties

$escapeChildren  : bool
$escapeOutput  : bool

Methods

initializeArguments()  : void
render()  : string

Constants

MAP_ON_FAILURE

protected mixed MAP_ON_FAILURE = ['' => 0, 'null' => 0, 'removeTag' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_TAG_ON_FAILURE, 'removeAttr' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_ATTR_ON_FAILURE, 'removeEnclosure' => \TYPO3\CMS\Frontend\Html\HtmlWorker::REMOVE_ENCLOSURE_ON_FAILURE]

Properties

$escapeChildren

protected bool $escapeChildren = false

$escapeOutput

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

transformed markup


        
On this page

Search results