Skip to content

v0.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ssylvia ssylvia released this 14 May 21:21
· 246 commits to master since this release
e3a4cf9

Changelog

FEATURES

  • You can now sanitize and validate all JSON data types (String, Number, JSON Object, Array, Boolean, or null)

BREAKING

  • isValidHtml renamed to validate.
  • The validate (previously isValidHtml) method now returns an object with the following keys: isValid and sanitized. This allows you to validate and have the sanitized value returned if the value is not sanitized.