removing invalid anchor from within button tag