Possible Duplicate:
Strip HTML from Text JavaScript
I have stored a string in the format <td> value1 </td> <td> value2 </td> <td> value3 </td> into a JavaScript variable. How can I get the values value1, value2, and value3 and store these into an array using jQuery?
Inspired by Tadeck’s solution, I’ve decided to go more functional-style: