Google Apps Script API
    Preparing search index...

    An HtmlOutput object that can be served from a script. Due to security considerations, scripts cannot directly return HTML to a browser. Instead, they must sanitize it so that it cannot perform malicious actions. You can return sanitized HTML like this:

    function doGet() {
      return HtmlService.createHtmlOutput('<b>Hello, world!</b>');
    }
    

    HtmlOutput iframe sandboxing guide to restrictions in HTML service

    interface HtmlOutput {
        addMetaTag(name: string, content: string): HtmlOutput;
        append(addedContent: string): HtmlOutput;
        appendUntrusted(addedContent: string): HtmlOutput;
        asTemplate(): HtmlTemplate;
        clear(): HtmlOutput;
        getAs(contentType: string): Blob;
        getBlob(): Blob;
        getContent(): string;
        getFaviconUrl(): string;
        getHeight(): number;
        getMetaTags(): HtmlOutputMetaTag[];
        getTitle(): string;
        getWidth(): number;
        setContent(content: string): HtmlOutput;
        setFaviconUrl(iconUrl: string): HtmlOutput;
        setHeight(height: number): HtmlOutput;
        setSandboxMode(mode: SandboxMode): HtmlOutput;
        setTitle(title: string): HtmlOutput;
        setWidth(width: number): HtmlOutput;
        setXFrameOptionsMode(mode: XFrameOptionsMode): HtmlOutput;
    }
    Index

    Methods