fixing text formatting issue by using base64 encoding to protect the html