LPS-47677 Fix XSS issue in team