static function unxml($string) { // flip the conversion table $table = array_flip(self::entities()); // convert xml entities to html entities $string = strtr($string, $table); return str::unhtml($string); }
public function testUnxml() { $this->assertEquals($this->sample, str::unxml('Super Äwesøme String')); }