How to get rid of this weird HTML tag inside the <style> tags? "<span id="CmCaReT"></span>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2018 01:37 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2018 07:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2018 08:00 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2018 07:56 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2018 08:03 PM
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