Str::esc()
Escape string for context specific output
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |
– | Untrusted data |
$context | string |
'html' |
Location of output (html , attr , js , css , url or xml ) |
Return type
string