str::html

Converts a string to a html-safe string

str::html($string, $keepTags = true)

Parameters

$string (string)
$keepTags (boolean)
True: lets stuff inside html tags untouched.

Return values

string
The html string