str::unxml($string)
Removes all xml entities from a string and convert them to html entities first and remove all html entities afterwards.
-
$string (string)
-
return (string)
Example
<?php
echo str::unxml('some <em>über</em> crazy stuff');
// output: some über crazy stuff