<br> being added to <table> in REST API message post
All,
I am posting content via the REST API. Lithium is adding a lot of <br/> tags inside a <p> tag to the start of the html that is being posted.
Is there something I can do to prevent this on the posting of conent via the REST API?
My original html has the following structure minus the content.
<table style="border-collapse: collapse; border: 1px solid #CCC;" border="0" cellspacing="0" cellpadding="0">
<br>
<tbody>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;"></td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;">
<br>
<p></p>
<br>
<p></p>
<br>
<p></p>
<br>
</td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;">
<ol>
<br>
<li></li>
<br>
<li></strong><strong></strong>
<li><strong></strong></li>
<br>
</ol>
</td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;"></td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px; color: #f00;"></td>
<br>
</tr>
<br>
</tbody>
<br>
</table>
After it is posted with the REST API it has the following structure.
<p><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></p>
<table
style="border-collapse: collapse; border: 1px solid #CCC;" border="0" cellspacing="0" cellpadding="0">
<br>
<tbody>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;"></td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;">
<br>
<p></p>
<br>
<p></p>
<br>
<p></p>
<br>
</td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;">
<ol>
<br>
<li></li>
<br>
<li></strong><strong></strong>
<li><strong></strong></li>
<br>
</ol>
</td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px;"></td>
<br>
</tr>
<br>
<tr>
<br>
<td style="background-color: #eee; width: 130px; border: 1px solid #CCC; vertical-align: top; font-weight: bold; padding: 8px 16px;"></td>
<br>
<td style="border: 1px solid #CCC; vertical-align: top; padding: 8px 16px; color: #f00;"></td>
<br>
</tr>
<br>
</tbody>
<br>
</table>