Module

Web.DOM.DOMParser

Package
purescript-dom-parser
Repository
toastal/purescript-dom-parser

#DOMParser Source

data DOMParser :: Type

#makeDOMParser Source

makeDOMParser :: Effect DOMParser

Create a new DOMParser

#parseFromString Source

parseFromString :: Partial => String -> String -> DOMParser -> Document

Parse a string with the first argumet being a string for a doctype

#parseHTMLFromString Source

parseHTMLFromString :: String -> DOMParser -> Document

Convience function to parse HTML from a string, partially applying parseFromString with "text/html"

#parseSVGFromString Source

parseSVGFromString :: String -> DOMParser -> Document

Convience function to parse SVG from a string, partially applying parseFromString with "image/svg+xml"

#parseXMLFromString Source

parseXMLFromString :: String -> DOMParser -> Document

Convience function to parse XML from a string, partially applying parseFromString with "application/xml"