Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>DOMParser#parseFromString

The next-gen web framework.
Extremely Popular
Go to Latest
method DOMParser.prototype.parseFromString
Re-export
import { DOMParser } from "https://deno.land/x/fresh@1.4.0/tests/deps.ts";

Type Parameters

MIME extends keyof { text/html: HTMLDocument; image/svg+xml: SVGDocument; text/xml: XMLDocument; }

Parameters

markupLanguage: string
mimeType: MIME
optional
globals: any

Returns

{ text/html: HTMLDocument; image/svg+xml: SVGDocument; text/xml: XMLDocument; }[MIME]