Trying out MJML for a daily email summary for some clients.
I use str_replace to copy in pre-constructed table rows in the email template then compile.
For some reason, as soon as I use my code -- MJML duplicates tables and screws with the layout. Even if I use the code directly from their documentation and input my own words, it distorts it.
Can anyone identify why
Non working code
<mjml>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-table>
<tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;">
<th style="padding: 0 15px 0 0;">Inventory Type</th>
<th style="padding: 0 15px;">Subtotal</th>
<th style="padding: 0 0 0 15px;">Total</th>
</tr>
<tr>
<td style="padding: 0 15px 0 0;">Unknown</td>
<td style="padding: 0 15px;">$5843.55</td>
<td style="padding: 0 0 0 15px;">$4047</td>
</tr>
<tr>
<td style="padding: 0 15px 0 0;">Solid Marijuana Infused Edible</td>
<td style="padding: 0 15px;">$318</td>
<td style="padding: 0 0 0 15px;">$214</td>
</tr>
</mj-table>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
Online Compiler: https://mjml.io/try-it-live/ByJDBobEx
Version: 3.1.1