Merx

$productPage->toSafeHtmlString()

String template builder with automatic HTML escaping, marking the result as trusted HTML for the Panel. Use this over toSafeString() whenever the result is rendered as HTML rather than used as plain text.

$productPage->toSafeHtmlString(null|string $template = null, array $data = [], null|string $fallback = ''): Kirby\Toolkit\HtmlString

Parameters

Name Type Default
$template null or string null
$data array []
$fallback null or string ''

Return type

Kirby\Toolkit\HtmlString

Parent class

Wagnerwagner\Merx\ProductPage inherited from Kirby\Cms\ModelWithContent