How to transform this object array from td's
localidades = "<td style='white-space: nowrap;'>Sto.amaro</td><td style='white-space: nowrap;'>Osasco</td><td style='white-space: nowrap;'>Lapa</td><td style='white-space: nowrap;'>Osasco Ii</td><td style='white-space: nowrap;'>Sao Miguel</td><td style='white-space: nowrap;'>Pirituba</td><td style='white-space: nowrap;'>Santana</td>";
then I use
console.log($(localidades).text(''));
and it returns me this array below
[<td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>, <td style="white-space: nowrap;"></td>]
I would like to turn this array back into string only with the empty tds as in the string below
"<td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td><td style='white-space: nowrap;'></td>"