make html safe and add other options