fix css and add htmlentities