/** * @param $string * @return string */ public static function xml($string) { return Str::escXml($string); }
public function testEscXML() { isSame('<a href="/test">Test!@#$%^&*()_+\\/</a>', Str::escXml('<a href="/test">Test!@#$%^&*()_+\\/</a>')); }