src/mako/view/renderers/traits/EscaperTrait.php
public function escapeHTML(?string $string, string $charset, bool $doubleEncode = true): string
	{
		return htmlspecialchars($string, ENT_QUOTES, $charset, $doubleEncode);
	}
public function escapeHTML(?string $string, string $charset, bool $doubleEncode = true): string
	{
		return htmlspecialchars($string, ENT_QUOTES, $charset, $doubleEncode);
	}
public function escapeHTML ( ? string $ string , string $ charset , bool $ doubleEncode = true ) : string { return htmlspecialchars ( $ string , ENT_QUOTES , $ charset , $ doubleEncode ) ; }
Returns a string that has been escaped for a HTML body context.

@param  string|null $string       String to escape
@param  string      $charset      Character set
@param  bool        $doubleEncode Should existing entities be encoded?
@return string
Returns a string that has been escaped for a HTML body context .