Rich-text/long-text field value containing a bare <table> (or <h1>) is HTML-escaped in HTML templates — prints as raw markup
A bug in the Salesforce document generation service causes rich-text or long-text field values containing bare HTML tables or headings to be incorrectly escaped as plain text. This results in raw markup appearing in generated documents instead of rendered HTML, leading to inconsistent rendering depending on how the content was created.