TEST
I want to remove the anchors and keep the Text i.e TEST
If you want to remove the link and leave the text:
$("a").replaceWith(function(){ return $(this).text() });
Online Demo: http://jsbin.com/aguki/edit
If you're using jQuery 1.4+, CMS provided an even shorter answer.