Transform HTML to richtext