I have some td elements (about 500) with multiple classes. How can I remove all but the first, knowing that this one may be different?
<td class"one tv-fox blue">value1</td>
<td class"two tv-cnn">value2</td>
<td class"grey tv-axn green">value3</td>
<td class"red tv-sky">value4</td>
Expected result
<td class"one">value1</td>
<td class"two">value2</td>
<td class"grey">value3</td>
<td class"red">value4</td>
Regards, Elio Fernandes