Method: str::html
Converts a string to a html-safe string
Info
Syntax
str::html($string, $keep_html=true)
Parameters
- $string (string)
- $keep_html (boolean) True: lets stuff inside html tags untouched.
Return (string)
The html string
Example
echo str::html('some <em>über crazy</em> stuff');
// output: some <em>über crazy</em> stuff
echo str::html('some <em>über crazy</em> stuff', false);
// output: some <em>über crazy</em> stuff