Skip to content

feat: add filterXSSWithResult type definitions - #300

Merged
leizongmin merged 1 commit into
masterfrom
trae/solo-agent-6OF2LD
May 6, 2026
Merged

feat: add filterXSSWithResult type definitions#300
leizongmin merged 1 commit into
masterfrom
trae/solo-agent-6OF2LD

Conversation

@leizongmin

Copy link
Copy Markdown
Owner

🎯 Changes

1. Type Definitions for filterXSSWithResult

  • Add filterXSSWithResult type definition to the global scope in typings/xss.d.ts.
  • Add filterXSSWithResult type definition to the module export in typings/xss.d.ts.
  • The new function returns both the filtered HTML and information about removed tags/attributes.

2. Cleanup

  • Remove dist/test.html, which was a test HTML file for XSS filtering demonstrations.

💡 Technical Highlights

  • Enhanced XSS Filtering: Provides more detailed output by including information on removed elements.
  • Improved Type Safety: Ensures proper usage and type checking for the new filterXSSWithResult function.

Co-authored-by: traeagent <traeagent@users.noreply.github.com>
@leizongmin
leizongmin merged commit 9b42221 into master May 6, 2026
5 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.

1 participant