Trilium Frontend API
    Preparing search index...

    Interface DOMParser

    The DOMParser interface provides the ability to parse XML or HTML source code from a string into a DOM Document.

    MDN Reference

    interface DOMParser {
        parseFromString(string: string, type: DOMParserSupportedType): Document;
    }
    Index

    Methods

    • The parseFromString() method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the contentType property.

      MDN Reference

      Parameters

      Returns Document