xml::encode

Converts a string to a xml-safe string Converts it to html-safe first and then it will replace html entities to xml entities

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

Parameters

$text (string)
$html (boolean)
True: convert to html first

Return values

string