added the htmlspecialchars fix.