3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = "<p>äöü</p><p>ß</p>"; // multibyte UTF-8 input $dom = new DOMDocument(); $dom->loadHTML( '<html>'.$html.'</html>' , LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $html = $dom->saveHTML(); print $html = substr(trim($html),6,-7);
based on 2lhhf
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
<p>&Atilde;&curren;&Atilde;&para;&Atilde;&frac14;</p><p>&Atilde;&#159;</p>