HTML as the app’s reply editor writes it, at most 100,000 characters. It may use only what the composer’s editor writes: the elements <p>, <div>, <span>, <br>, <hr>, <strong>, <b>, <em>, <i>, <u>, <s>, <sub>, <sup>, <small>, <blockquote>, <pre>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <ul>, <ol>, <li>, <a>, <img>, <table>, <thead>, <tbody>, <tr>, <td>, <th>; the attributes class, style, title on any element; href, target, rel on <a>; src, alt, width, height on <img>; data-list on <li>; data-variable on <span>; colspan, rowspan on <td>; colspan, rowspan on <th>; URLs using http, https, mailto (http, https on <img>), absolute only; the CSS properties background-color, border, border-bottom, border-collapse, border-left, border-right, border-top, color, font-family, font-size, font-style, font-weight, height, line-height, margin, margin-bottom, margin-left, margin-right, margin-top, max-height, max-width, padding, padding-bottom, padding-left, padding-right, padding-top, text-align, text-decoration, vertical-align, width, with no url() or other function that loads or runs anything; classes matching ^ql-[\w-]+$. Anything else is refused with BAD_USER_INPUT naming it; HTML comments, a doctype and empty attributes are removed. A variable is its bare name, as in text, or <span data-variable=“customer_first_name”>customer_first_name</span>; a name that isn’t a variable stays as text.
New images the body shows, at most 10, stored in the same write. Each needs an <img> in html whose src is its src; one without, a src given twice, or a file that isn’t an image is BAD_USER_INPUT. An image the macro already has stays when its <img> keeps the url SupportMacro.bodyHtml or SupportMacro.inlineImages gave it.