v0.3.0
Pre-release
Pre-release
Changelog
FEATURES
- You can now sanitize and validate all JSON data types (String, Number, JSON Object, Array, Boolean, or null)
BREAKING
isValidHtml
renamed tovalidate
.- The
validate
(previouslyisValidHtml
) method now returns an object with the following keys:isValid
andsanitized
. This allows you to validate and have the sanitized value returned if the value is not sanitized.