.. include:: /Includes.rst.txt .. _typo3-fluid-format-html: ======================================== format.html ViewHelper `` ======================================== 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 :typoscript:`lib.parseFunc_RTE` is used to parse the string. The view helper must not be used in backend context, as it triggers frontend logic. Instead, use :html:`` to secure a given HTML string or :html:`` to parse links in HTML. Examples ======== Default parameters ------------------ :: foo bar. Some link. Output::

foo bar. Some link.

Depending on TYPO3 setup. Custom parseFunc ---------------- :: foo bar. Some link. Output:: foo bar. Some link. Inline notation --------------- :: {someText -> f:format.html(parseFuncTSPath: 'lib.parseFunc')} Output:: foo bar. Some link. .. _parseFunc: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Parsefunc.html .. _typo3-fluid-format-html_arguments: Arguments ========= .. _format.html_parsefunctspath: parseFuncTSPath --------------- :aspect:`DataType` string :aspect:`Default` 'lib.parseFunc_RTE' :aspect:`Required` false :aspect:`Description` Path to TypoScript parseFunc setup.