refactoring html parsing logic to replace HtmlCleaner with Jsoup and re-engineering to make tag selection generic