remove </tr> from html query
<p>In my jQuery I have a <code>myTable</code> string:</p>

<pre><code>var myTable = "&lt;table width='100%'&gt;&lt;tr&gt;";
</code></pre>

<p>After adding some data in <code>&lt;td&gt;</code>s to <code>myTable</code> like</p>

<pre><code>myTable += &lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt;
</code></pre>

<p>then closing the table like:</p>

<pre><code>myTable += "&lt;/tr&gt;&lt;table&gt;"
</code></pre>

<p>the <code>myTable</code> string is now:</p>

<pre><code>"&lt;table width='100%'&gt;&lt;tr&gt;&lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt;&lt;/tr&gt;&lt;table&gt;"
</code></pre>

<p>Is it possible to remove the last (and only the last) <code>"&lt;/tr&gt;&lt;table&gt;"</code> from the table. The <code>&lt;td&gt;</code>s can contain nested <code>&lt;table&gt;</code>s.</p>

<p>So at the end <code>myTable</code> should be something like  <code>&lt;table width='100%'&gt;&lt;tr&gt;&lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt;"</code>.</p>
