Method: str::xml

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

Info

Syntax

str::xml($text, $html=true)

Parameters

Return (string)

Example


echo str::xml('some über crazy stuff');
// output: some über crazy stuff