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