Proper anchor tag handling