Interface HtmlNodeParameters

Source
interface HtmlNodeParameters {
    dataPropertyName?: string;
    extractionValues?: {
        values: {
            attribute?: string;
            cssSelector?: string;
            key?: string;
            returnArray?: boolean;
            returnValue?: "text" | "attribute" | "html" | "value";
            skipSelectors?: string;
        }[];
    };
    html?: string;
    operation?: | "generateHtmlTemplate"
    | "extractHtmlContent"
    | "convertToHtmlTable";
    options?: | {
        cleanUpText?: boolean;
        trimValues?: boolean;
    }
    | {
        capitalize?: boolean;
        caption?: string;
        cellAttributes?: string;
        customStyling?: boolean;
        headerAttributes?: string;
        rowAttributes?: string;
        tableAttributes?: string;
    };
    sourceData?: "json"
    | "binary";
}

Properties§

Source§

readonly dataPropertyName?: string

Default: "data"

Source§

readonly extractionValues?: {
    values: {
        attribute?: string;
        cssSelector?: string;
        key?: string;
        returnArray?: boolean;
        returnValue?: "text" | "attribute" | "html" | "value";
        skipSelectors?: string;
    }[];
}

Default: {} Type options: {"multipleValues":true}

Source§

readonly html?: string

HTML template to render Default: "\n\n\n\n <meta charset="UTF-8" />\n My HTML document\n\n\n <div class="container">\n

This is an H1 heading

\n

This is an H2 heading

\n

This is a paragraph

\n \n\n\n\n\n\n" Type options: {"editor":"htmlEditor"}

Source§

readonly operation?:
    | "generateHtmlTemplate"
    | "extractHtmlContent"
    | "convertToHtmlTable"

Default: "generateHtmlTemplate"

Source§

readonly options?:
    | { cleanUpText?: boolean; trimValues?: boolean }
    | {
        capitalize?: boolean;
        caption?: string;
        cellAttributes?: string;
        customStyling?: boolean;
        headerAttributes?: string;
        rowAttributes?: string;
        tableAttributes?: string;
    }

Default: {}

Source§

readonly sourceData?: "json" | "binary"

If HTML should be read from binary or JSON data Default: "json"