Fix XSS vulnerability in docs search highlighting

- Implement `escapeHtml` function in `docs/assets/theme.js`
- Update `highlight` function to safely escape content before wrapping matches in `<mark>` tags
- Update `torch/src/todo/TODO_2026-02-16T11:47:38Z.md` to mark task as completed

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-16 18:06:19 +00:00
1 parent c6560305a9
commit f38bbe57d2
2 files changed
+23 -1

No files matched your search

@@ -0,0 +1,5 @@
# TODO: bug-reproducer-agent run 2026-02-16T11:47:38Z
- Agent: bug-reproducer-agent
- Status: Completed
- Resolution: Fixed XSS vulnerability in docs/assets/theme.js