Hi everybody,
this is driving me nuts ;-) I have a string whith various span tags... I want to remove all span tags except the ones with classname XYZ... The problem is that i havent found a solution to leave the closing tag...
My starting point is this regex:
text = text.replace(/<\/?[^>]+(>|$)/g, "");
But everything i tried to say "DONT DO IT IF MATCH classnameXYZ Failed till now...
Any ideas? Thank you in advance!