Now working with PHP 5.3 again.

Accidently used ENT_HTML5, which was introduced in PHP5.4 and broke backwards compatibility. This has been changed to ENT_COMPAT now. I also downloaded PHP5.3 and tested the script there, to make sure any issues have been resolved.