add function of convert to HTML