cleanCssValue is a utility function that performs some basic cleanup on CSS attribute values. Leading and trailing whitespace is removed. The CSS values "initial" and "inherit" are blocked. The function is vectorised so can be used with arrays.

cleanCssValue(cssValue)

Arguments

cssValue

The value to cleanup.

Value

The cleaned value.