fix api of convert to HTML