Replace regex with use of TagSoup