var str = '<A =href=3D"http://server/site/file1.txt">file1.txt</A><BR> 12. oktoober 2009. a. 9:25 = 289705'; alert(str.replace(/<\/?[^>]+>/g, ''));