added some helper functions for preventing xss