format str to html format