html::encode

Converts a string to a html-safe string

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

Parameters

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

Return values

string
The html string