OWASP / java-html-sanitizer

Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
Other
833 stars 210 forks source link

Test : Add test when raw string has rel="noopener noreferrer" #293

Closed subbudvk closed 5 months ago

subbudvk commented 7 months ago

When the string to be sanitized already has rel="noopener noreferrer" the library appends it again causing it to be added twice. This PR gives a failing test. If it's fine, I'll create a PR for the fix in dev.