我想删除列的重复单元格。
<table id="test" border="1">
<tr>
<td>test1<td>
<td>test2<td>
<td>test3<td>
</tr>
<tr>
<td>test4<td>
<td>test2<td>
<td>test5<td>
</tr>
<tr>
<td>test6<td>
<td>test2<td>
<td>test5<td>
</tr>
<tr>
<td>test6<td>
<td>test8<td>
<td>test9<td>
</tr>
</table>
output
------
test1 test2 test3
test4 test2 test5
test6 test2 test9
test6 test8 test9
I want in this format
---------------------
test1 test2 test3
test4 test5
test6 test9
test8
</p>