Google Apps Script API
    Preparing search index...

    A TextOutput object that can be served from a script.

    Due to security considerations, scripts cannot directly return text content to a browser. Instead, the browser is redirected to googleusercontent.com, which will display it without any further sanitization or manipulation.

    You can return text content like this:

    function doGet() {
      return ContentService.createTextOutput("hello world!");
    }
    

    ContentService

    interface TextOutput {
        append(addedContent: string): TextOutput;
        clear(): TextOutput;
        downloadAsFile(filename: string): TextOutput;
        getContent(): string;
        getFileName(): string;
        getMimeType(): GoogleAppsScript.Content.MimeType;
        setContent(content: string): TextOutput;
        setMimeType(mimeType: GoogleAppsScript.Content.MimeType): TextOutput;
    }
    Index

    Methods