Whitelist for media types (MIME types without parameters like charset) which are allowed in safe data URI's.
Check if a data URI is safe, in that it cannot be used as an XSS attack vector. The data URI is considered safe when its detected media type (MIME type) is present in the data URI media type whitelist.
Data URI to scrutinize for XSS safety.
True when the data URI is safe, false when the data URI is unsafe or invalid.
Break a data URI string down into its sub-components.
Data URI to parse.
as seen in the URI (no defaults are provided, omitted optionals will be undefined).
Utilities for parsing and assessing data URIs.