Prevent XSS attack from javascript in users, spaces and events data
Escape javascript in calls to select2 and prevent XSS