Added htmlspecialchars function