Skip to content

Escape generated URL links#102

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-url-link-escaping
Jun 15, 2026
Merged

Escape generated URL links#102
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-url-link-escaping

Conversation

@phucnguyen1707

Copy link
Copy Markdown
Contributor

Summary: escape matched URLs before placing them in generated anchor href/text; add a regression test for query strings containing ampersands so generated HTML uses & instead of raw &. Verification: pnpm vitest run --config /tmp/vitest-qryptchat-api.config.js src/lib/utils/url-link-converter.test.js passes; pnpm exec oxlint src/lib/utils/url-link-converter.js src/lib/utils/url-link-converter.test.js passes. Note: the repo ESLint config currently cannot load locally because package globals is missing from the installed dependency graph, so I used oxlint for the changed files. Closes #99.

@ralyodio ralyodio merged commit bd7f145 into profullstack:master Jun 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: URL not HTML-escaped in url-link-converter output

2 participants