Send feedback Class HtmlOutputMetaTag Stay organized with collections Save and categorize content based on your preferences.
outlined_flag HtmlOutputMetaTag represents a meta tag added to a page using HtmlOutput.addMetaTag().
The getContent() method retrieves the content of the meta tag.
The getName() method retrieves the name of the HtmlOutputMetaTag.
HtmlOutputMetaTag An object that represents a meta tag added to the page by calling HtmlOutput.addMetaTag(name, content) .
const output = HtmlService . createHtmlOutput ( '<b>Hello, world!</b>' ); output . addMetaTag ( 'viewport' , 'width=device-width, initial-scale=1' ); const tags = output . getMetaTags (); Logger . log ( '<meta name="%s" content="%s"/>' , tags [ 0 ]. getName (), tags [ 0 ]. getContent (), ); Methods Method Return type Brief description getContent() StringGets the content of this meta tag. getName() StringGets the name of this HtmlOutputMetaTag .
Detailed documentation getContent() Gets the content of this meta tag.
Return String — the content of this meta tag.
getName() Gets the name of this HtmlOutputMetaTag .
Return String — the name of this meta tag.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-11 UTC."],[],[]]