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