5 posts tagged with “html”

Extract Meta Tags

extractMetaTags(html) reads a page's <title> and <meta> tags and returns an object with title, description, ogTitle, ogImage, and a…

Get Page Title

getPageTitle(url) fetches a page and returns the text of its <title> tag, or '' if it cannot get one. It does not throw on ordinary failures…

Fill Html Template

Building approval emails and HtmlService notices by concatenating strings is how < in a client name becomes a broken page — or worse…

HTML Table From Objects

Digest emails beat screenshots of a sheet. htmlTableFromObjects(rows, columns) turns an array of objects into a simple escaped <table> you…

Send an HTML Email with GmailApp

GmailApp.sendEmail can send HTML — you just need htmlBody (and a plain-text fallback for picky clients). This helper wraps the options bag…