StrToHtml/HtmlToStr: new improvements implemented by @gilsonnr.