@ 2015-11-02T14:33:55Z <?php
$description = "<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Material:</td><td>Solid Ash frame. Composite panels.
</td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Finish:</td><td>Available in Grey Wash & White Wash
</td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Dimensions:</td><td>H 57cm x W 42cm x D 40cm
</td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Features:</td><td>Drawer and lower shelf
</td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Assembly:</td><td>Self assembly - assembly service available at additional cost
</td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>ASPACE Exclusive</td><td></td></tr></table>";
$s = html_entity_encode($description, ENT_COMPAT, 'UTF-8');
simplexml_load_string('<validation>' . $description . '</validation>');
var_dump(libxml_get_errors(), $s);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.7 Fatal error: Uncaught Error: Call to undefined function html_entity_encode() in /in/O8WuM:9
Stack trace:
#0 {main}
thrown in /in/O8WuM on line 9
Process exited with code 255 . Output for 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Fatal error: Call to undefined function html_entity_encode() in /in/O8WuM on line 9
Process exited with code 255 . preferences:dark mode live preview
175.15 ms | 402 KiB | 229 Q