HTML isn't escaped in chat prompt
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.5k
- Forks
- 4.8k
- PR merge metrics
- No merged PRs in 30d
Description
I entered:
`hello`
in the prompt field at https://chat.lmsys.org, submitted it, and was surprised to see the HTML rendered in the prompt and in the answer.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior at https://chat.lmsys.org by submitting the reported hello input in the prompt field. Trace the chat prompt rendering entry point and verify that the submitted markup is displayed as literal text rather than rendered HTML in both the prompt and answer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100