Sort, reverse, de-duplicate, shuffle and clean up lists, one item per line.
Clean up email lists: lowercase, remove +tags and Gmail dots, drop duplicates
Safely encode or decode HTML entities to prevent XSS attacks
Escape JavaScript strings for safe embedding in code or JSON