Skip to content

🔐 Refactor MetaTagInjector and tests for security, structure & maintainability#7896

Open
Krishprajapati15 wants to merge 2 commits intoUniswap:mainfrom
Krishprajapati15:refactor/meta-tag-tests
Open

🔐 Refactor MetaTagInjector and tests for security, structure & maintainability#7896
Krishprajapati15 wants to merge 2 commits intoUniswap:mainfrom
Krishprajapati15:refactor/meta-tag-tests

Conversation

@Krishprajapati15
Copy link

Escaped meta content to guard against XSS in tag injection

Improved HTMLRewriter logic with better readability and modularity

Added detailed JSDoc for enhanced developer clarity

Grouped test cases using describe blocks for logical separation

DRYed up test setup using beforeEach

Increased test coverage and assertion clarity

Added tests for blocked paths and potential XSS cases

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