:navigation-title: format.html .. include:: /Includes.rst.txt .. _typo3-fluid-format-html: ======================================== Format.html ViewHelper `` ======================================== .. typo3:viewhelper:: format.html :source: ../../Global.json .. _typo3-fluid-format-html-example: Examples ======== Default parameters ------------------ :: {$myConstant.project} is a cool CMS (TYPO3). Output::

TYPO3 is a cool CMS (TYPO3).

Depending on TYPO3 constants. Custom parseFunc ---------------- :: TYPO3 is a cool CMS (TYPO3). Output:: TYPO3 is a cool CMS (TYPO3). Data argument -------------- If you work with TypoScript :typoscript:`field` property, you should add the current record as `data` to the ViewHelper to allow processing the `field` and `dataWrap` properties correctly. :: News title: After "dataWrap = |{FIELD:title}" you may have this Output:: News title: TYPO3, greatest CMS ever Current argument ----------------- Use the `current` argument to set the current value of the content object. :: I'm gone After `setContentToCurrent = 1` you may have this output:: Thanks Kasper for this great CMS CurrentValueKey argument ------------------------- Use the `currentValueKey` argument to define a value of data object as the current value. :: Content: After `dataWrap = |{CURRENT:1}` you may have this Output:: Content: How to install TYPO3 in under 2 minutes ;-) Inline notation --------------- :: {someText -> f:format.html(parseFuncTSPath: 'lib.parseFunc')} Output:: TYPO3 is a cool CMS (TYPO3).