removing extraneous anchor links