$(".btn").replaceWith("[a class='btn' href='" + $(".btn").attr("href") + "'][i/][span][i/][span/]" + $(".btn").text() +"[/span][/a]");