html()
Creates safe html by encoding special characters
html(?string $string, bool $keepTags = false): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |null |
– | unencoded text |
$keepTags | bool |
false |
Return type
string