MIME
try {
$mime.parse("text/html; charset=utf-8")
// => { mediaType: "text/html", parameters: { charset: "utf-8" } }
$mime.format("text/html", { charset: "utf-8" })
// => text/html; charset=utf-8
} catch {}
Last updated
try {
$mime.parse("text/html; charset=utf-8")
// => { mediaType: "text/html", parameters: { charset: "utf-8" } }
$mime.format("text/html", { charset: "utf-8" })
// => text/html; charset=utf-8
} catch {}
Last updated