Refactor #10097 htmlspecialchars in PHP 5.4 thanks enogu
http://tracker.modx.com/issues/10097