Skip to content
aeropage-round-dark
Aeropage Documentation
Inputs Guide

icon picker
HTML editor


image.png

How to use it as email content?


megaphone
When you have HTML from diffrent source than aeropage HTML editor. Make sure to .

Once you have your html uploaded, make sure to create escaped version of it. Escaped html is a version that includes ‘\’ before any special character, so that airtable know that it is not a markdown.
image.png

Build an automation for escaping html


Automation includes
Trigger “When a record is updated”
Run a script
Update record

Make trigger
image.png

Copy code and paste it as script
var replacements = [
[/\*/g, "\\*"],
[/#/g, "\\#"],
[/##/g, "\\##"],
[/###/g, "\\###"],
[/\*\*/g, "\\**"],
[/~~/g, "~~"],
[/\n/g, "<br>"],
[/\[]/g, "\\[]"],
[/\[x]/g, "\\[x]"],
[/-/g, "\\-"],
[/\[/g, "\\["],
[/\]/g, "\\]"],
[/\`/g, "\\`"],
[/\`\`\`/g, "\\```"],
[/_/g, "\\_"],
];

const htmlToMarkdown = (html) => {
return replacements.reduce(function (html, replacement) {
return html.replace(replacement[0], replacement[1]);
}, html);
};

const { HTML } = input.config() ?? {};
if (!HTML) {
throw Error("HTML field not found");
}

output.set("escapedHtml", htmlToMarkdown(HTML));

image.png

Update record
image.png

Send an email

image.png

Result

image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.