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>&#252;ber</em> crazy stuff');
// output: some &uuml;ber crazy stuff