Attention

TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

format.html

Renders a string by passing it to a TYPO3 parseFunc. You can either specify a path to the TypoScript setting or set the parseFunc options directly. By default :ts:`lib.parseFunc_RTE` is used to parse the string.

Examples

Default parameters

<f:format.html>foo <b>bar</b>. Some <LINK 1>link</LINK>.</f:format.html>

Output:

<p class="bodytext">foo <b>bar</b>. Some <a href="index.php?id=1" >link</a>.</p>

Depending on TYPO3 setup.

Custom parseFunc

<f:format.html parseFuncTSPath="lib.parseFunc">foo <b>bar</b>. Some <LINK 1>link</LINK>.</f:format.html>

Output:

foo <b>bar</b>. Some <a href="index.php?id=1" >link</a>.

Inline notation

{someText -> f:format.html(parseFuncTSPath: 'lib.parseFunc')}

Output:

foo <b>bar</b>. Some <a href="index.php?id=1" >link</a>.

Arguments

parseFuncTSPath

DataType

string

Default

'lib.parseFunc_RTE'

Required

false

Description

Path to TypoScript parseFunc setup