moved htmlentities to fix build process