A React chat UI renders malicious generated HTML. What changes?
Practice this question- Render model content as escaped text or a sanitized restricted Markdown subset.
- Do not trust generated HTML or links automatically.
- Review XSS, source URLs, attachment access, and leaked internal events alongside the backend controls.
Adapted from 13_AI.MD · “29.20 MERN and AI”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.