Glossary Term
sanitize_hex_color()
3 tags
1 category
sanitize_hex_color() — Sanitizes a hex color. Returns either ”, a 3 or 6 digit hex color (with #), or nothing. For sanitizing values without a #, see sanitize_hex_color_no_hash().
Inputs: $color (string): @return string|null The sanitized hex color, or null if invalid.
Returns string|null: The sanitized hex color, or null if invalid.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
