set the htmlenttities parameters.. as of php 5.4, these are the defaults, so this is mostly for people who haven't upgraded yet

Resolves http://bugs.web2project.net/view.php?id=1374
removed the deprecated method call