refactor: create HtmlUtils class; extract httpClient logic from service level