How to get rid of this weird HTML tag inside the <style> tags? "<span id="CmCaReT"></span>"

Jay Abey
Kilo Contributor

find_real_file.png

Do you know how to get rid of these tags? They are currently messing up the styling in our email notifications.

Thanks in Advance.

Jay

 

11 REPLIES 11

SatheeshKumar
Kilo Sage
Can you brief your issue??

Hi,
I am creating an email notification. I have the styling of this notification inside <style></style> tags and then the email body in html format. Since these emails are viewed by Outlook email client they are coded in <table> tags.

After coding, updating and closing the system notification I go back in try to preview the notification and see my styling has not been applied as I would expect. I go into the source code only to find out that there are weird "<span id="CmCaReT"></span>" tags been applied inside the <style> tags which seems to be the one causing this issue.

Would you know a way of getting rid of these / stop getting these tagged added automatically inside the code even after removing them and updating the notifications back again ?

Thanks,

Jay

SanjivMeher
Kilo Patron
Kilo Patron

Try

 

html_str = html_str.replace('<span id="CmCaReT"></span>','');


Please mark this response as correct or helpful if it assisted you with your question.

Hi Thanks for the reply.

Do I add this script before the <style> tags just as it is? What's the "html_str" variable?

Jay