Skip to contents

This function parses a data URI and returns the MIME type and decoded data.

Usage

parse_data_uri(data_uri)

Arguments

data_uri

A string. The data URI to parse.

Value

A list with two elements: 'mime_type' and 'data'.