interface
interface copied to clipboard
🔐 Refactor MetaTagInjector and tests for security, structure & maintainability
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