fix broken HTML tags in concordance using lxml rather than BeautifulSoup since it's much faster