Trilium Backend API
    Preparing search index...

    Interface DomSerializerOptions

    interface DomSerializerOptions {
        decodeEntities?: boolean;
        emptyAttrs?: boolean;
        encodeEntities?: boolean | "utf8";
        selfClosingTags?: boolean;
        xmlMode?: boolean | "foreign";
    }

    Hierarchy (View Summary)

    Index

    Properties

    decodeEntities?: boolean

    Option inherited from parsing; will be used as the default value for encodeEntities.

    true
    
    emptyAttrs?: boolean

    Print an empty attribute's value.

    xmlMode
    
    With <code>emptyAttrs: false</code>: <code>&lt;input checked&gt;</code>
    
    With <code>emptyAttrs: true</code>: <code>&lt;input checked=""&gt;</code>
    
    encodeEntities?: boolean | "utf8"

    Encode characters that are either reserved in HTML or XML.

    If xmlMode is true or the value not 'utf8', characters outside of the utf8 range will be encoded as well.

    decodeEntities

    selfClosingTags?: boolean

    Print self-closing tags for tags without contents.

    xmlMode
    
    With <code>selfClosingTags: false</code>: <code>&lt;foo&gt;&lt;/foo&gt;</code>
    
    With <code>selfClosingTags: true</code>: <code>&lt;foo /&gt;</code>
    
    xmlMode?: boolean | "foreign"

    Treat the input as an XML document; enables the emptyAttrs and selfClosingTags options.

    If the value is "foreign", it will try to correct mixed-case attribute names.

    false