Why is MJML duplicating this table?
<p>Trying out MJML for a daily email summary for some clients.</p>

<p>I use str_replace to copy in pre-constructed table rows in the email template then compile.</p>

<p>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. </p>

<p>Can anyone identify why</p>

<p>Non working code</p>

<pre><code>  &lt;mjml&gt;
    &lt;mj-body&gt;
      &lt;mj-container&gt;
        &lt;mj-section&gt;
          &lt;mj-column&gt;
            &lt;mj-table&gt;
              &lt;tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;"&gt;
                &lt;th style="padding: 0 15px 0 0;"&gt;Inventory Type&lt;/th&gt;
                &lt;th style="padding: 0 15px;"&gt;Subtotal&lt;/th&gt;
                &lt;th style="padding: 0 0 0 15px;"&gt;Total&lt;/th&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td style="padding: 0 15px 0 0;"&gt;Unknown&lt;/td&gt;
                &lt;td style="padding: 0 15px;"&gt;$5843.55&lt;/td&gt;
                &lt;td style="padding: 0 0 0 15px;"&gt;$4047&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td style="padding: 0 15px 0 0;"&gt;Solid Marijuana Infused Edible&lt;/td&gt;
                &lt;td style="padding: 0 15px;"&gt;$318&lt;/td&gt;
                &lt;td style="padding: 0 0 0 15px;"&gt;$214&lt;/td&gt;
              &lt;/tr&gt;  
            &lt;/mj-table&gt;
          &lt;/mj-column&gt;
        &lt;/mj-section&gt;
      &lt;/mj-container&gt;
    &lt;/mj-body&gt;
  &lt;/mjml&gt;
</code></pre>

<p>Online Compiler: <a href="https://mjml.io/try-it-live/ByJDBobEx" rel="nofollow noreferrer">https://mjml.io/try-it-live/ByJDBobEx</a></p>

<p>Version: 3.1.1</p>