Code being added to HTML email templates after saving

Marcel H_
Tera Guru

I keep having an odd issue with HTML email templates that I've been working with, and wondering if anyone has ever seen anything like this.

I had my templates working well, except for some minor HTML formatting that I was tweaking, then all of a sudden the templates were loosing formatting, tables not formatted properly, etc. After looking at the code for the templates I noticed things like the following lines were being added to the code in seemingly random locations:

<span id="CmCaReT"></span>

<span id="__caret">_</span><!--

\u0

  (not inside any tags)

<p></p> (seemingly random, adding white space where there was none before, and not in an area in the editor or code that I changed)

<p>  </p> (added between lines where no spaces existed previously)

The other issue is that I'll go in and delete these added tags, save the template and check the code again and they'll be back. Sometimes it takes deleting the tags 5, 6, 7 times before the code will properly reflect what I want it to be.

It's truly maddening when you get everything looking the way you want in the email preview on the notification record, then test by generating records to trigger sending the mail, and have it come through completely messed up in the mail client.

12 REPLIES 12

Tom Alday
Mega Guru

I've been seeing this exact same issue since at least Helsinki. I find it will insert that code wherever you leave your cursor when closing the HTML window. I've also been dealing with it leaving random <p>&nbsp</p> tags at either the top or bottom of the HTML code whenever I save it.


We're having the same issue in Jakarta- leaving a comment in case someone comes up with a solution in this thread All I've been able to do for now is basically leave an extra space at the end of each page.


scottneeb
Tera Contributor

Having the exact same issue.  Did anyone find a solution?

I've found a workaround, but no solution. The only thing that I've found that works is to place the cursor in the html body somewhere before clicking on the source code button in the editor. This seems to prevent extra lines from being added to the HTML for some reason.

Michael Lee1
Tera Expert

I'm having the exact same issue in knowledge articles. It's very annoying.