Fixed refactoring issue with htmlString