HtmlViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:format.html>
ViewHelper to render a string which can contain HTML markup by passing it to a TYPO3 `parseFunc`. This can sanitize unwanted HTML tags and attributes, and keep wanted HTML syntax and take care of link substitution and other parsing.
Either specify a path to the TypoScript setting or set the parseFunc
options directly.
By default, lib.parseFunc_RTE
is used to parse the string.
<f:format.html parseFuncTSPath="lib.myCustomParseFunc">
{$project} is a cool <b>CMS</b> (<a href="https://www.typo3.org">TYPO3</a>).
</f:format.html>
Note: The ViewHelper must not be used in backend context, as it triggers frontend logic.
Instead, use <f:sanitize.html>
within backend context to secure a given HTML string
or <f:transform.html>
to parse links in HTML.
Tags
Table of Contents
Properties
- $escapeChildren : bool
- Children must not be escaped, to be able to pass {bodytext} directly to it
- $escapeOutput : bool
- Plain HTML should be returned, no output escaping allowed
Methods
- initializeArguments() : void
- render() : string
Properties
$escapeChildren
Children must not be escaped, to be able to pass {bodytext} directly to it
protected
bool
$escapeChildren
= false
$escapeOutput
Plain HTML should be returned, no output escaping allowed
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string