convert rest to html