You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

  1. gavhanly
  2. JCE Editor
  3. Thursday, 22 October 2020
I'm having a problem with some HTML tags being stripped out.

I'm creating an email - so am using "tables" etc - but when I enter the code like this into the html screen of JCE:


<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tr>
<td style="padding: 0;"><table border="0" align="center" cellpadding="0" cellspacing="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tr>
<td bgcolor="#ac0000" style="border-radius: 3px; padding: 12px 18px;" align="center">
<a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;">ORDER HERE</a></td>
</tr>
</table></td>
</tr>
</table>


JCE then rewrites it when I go back to WYSIWYG mode to:


<table border="0" align="center" cellpadding="0" cellspacing="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tbody>
<tr>
<td bgcolor="#ac0000" style="border-radius: 3px; padding: 12px 18px;" align="center">
<a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;" rel="noopener">ORDER HERE</a></td>
</tr>
</tbody>
</table>


Essentially stripping out the tds, replacing it with tbody and then missing all the spacing elements. Do you know how I can stop this from happening?

Note that I do already have doctype set to "mixed"
Accepted Answer Pending Moderation
I've tested this on the demo site - https://demo.joomlacontenteditor.net - and the only change is the addition of the <tbody> tag, which is a valid change- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody


<table border="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tbody>
<tr>
<td style="padding: 0;">
<table border="0" style="border-spacing: 0; font-family: sans-serif; color: #333333;">
<tbody>
<tr>
<td style="border-radius: 3px; padding: 12px 18px;"><a href="https://www.31dover.com/spirits/portofino-gin-50cl.html?utm_source=affiliate&utm_medium=hotdinners&utm_campaign=october" target="_blank" rel="noopener" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; color: #ffffff; text-decoration: none; display: inline-block;">ORDER HERE</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Just because you're not paranoid doesn't mean everybody isn't out to get you.
  1. more than a month ago
  2. JCE Editor
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!