"""
XSS prevention tests for chat feature.
Verifies that XSS payloads are handled safely in chat content,
preventing cross-site scripting attacks.
"""
import json
import pytest
# =============================================================================
# XSS Payload Collections
# =============================================================================
# Common XSS payloads for testing
SCRIPT_TAG_PAYLOADS = [
"",
"",
"",
"",
"",
"",
]
EVENT_HANDLER_PAYLOADS = [
"
",
"
",
"