WORDS-352 - create tests for HtmlToStringConverter.java class, some refactoring