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().

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback