Encode output to stop stored XSS

Not solved

Comments are rendered with string concatenation. Encode author and text so markup is displayed, not executed.

Level
Foundational
Estimated time
~20 min
Points
0/70 pts
Questions
0/0 answered
OWASP
A05:2025
CWE
CWE-79
comments.js
Test results

Run the tests to check your code. It runs on the server in an isolated sandbox with no network access.