Encapsulate query string in tag