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