str::html($string, $keepTags = true)
Converts a string to a html-safe string
-
$string (string)
-
$keepTags (boolean)
True: lets stuff inside html tags untouched. -
return (string)
The html string
Example
<?php
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