in reply to removing tags

Your regular expression is being too greedy. The ".*" bit will get everything up until the *last* ">" in the line, which will probably eliminate the content as well. Try using:
s/<.*?>|<\/.*?>/ /g;
instead, which makes it stop at the first ">" character found.

C.