Skip to main content

API Overview

Functions

data ( $data [, $media-type] [, $encode] )

Creates a data URL for the provided data of the specified type.

encode ( $string )

Percent-encodes a URL component, replacing each instance of certain characters by escape sequences representing the UTF-8 encoding of the characters.

svg ( $data... )

Creates a data URL for the provided SVG, escaping the required characters.

Don’t see the function you’re looking for? Request a new feature describing a use case.