Added utils for converting html and text