GeoLeaf Core API - v3.0.0
    Preparing search index...
    DOMSecurity: {
        setTextContent: (
            element: HTMLElement | null | undefined,
            text: string | number | null | undefined,
        ) => void;
        setSafeHTML: (
            element: HTMLElement,
            html: string,
            allowedTags?: string[],
        ) => void;
        clearElement: (element: HTMLElement | null | undefined) => void;
        clearElementFast: (element: HTMLElement | null | undefined) => void;
        createSVGIcon: (
            width: number,
            height: number,
            pathData: string,
            options?: SVGIconOptions,
        ) => SVGElement;
        getIcon: (
            name: string,
            size?: number,
            options?: SVGIconOptions,
        ) => SVGElement | null;
        SVG_ICONS: Record<string, string>;
    } = ...

    DOM construction helpers that cannot be made to inject markup.

    The safe counterpart to innerHTML: text goes in as text, attributes are vetted, and SVG icons are built from path data rather than parsed from a string. This is the surface the security rule points at when it forbids reaching for innerHTML directly.

    Type Declaration

    • setTextContent: (
          element: HTMLElement | null | undefined,
          text: string | number | null | undefined,
      ) => void
    • setSafeHTML: (element: HTMLElement, html: string, allowedTags?: string[]) => void
    • clearElement: (element: HTMLElement | null | undefined) => void
    • clearElementFast: (element: HTMLElement | null | undefined) => void
    • createSVGIcon: (
          width: number,
          height: number,
          pathData: string,
          options?: SVGIconOptions,
      ) => SVGElement
    • getIcon: (name: string, size?: number, options?: SVGIconOptions) => SVGElement | null
    • SVG_ICONS: Record<string, string>