Allow passing in the $type parameter of htmlspecialchars()