Added fix for object with htmlspecialchars