Prevent XSS attacks on project's groups list

Thanks, b3hr0uz @ HackerOne!