Skip to content

Conversation

@araluce
Copy link
Member

@araluce araluce commented Sep 15, 2025

This pull request makes a small adjustment to the sanitize method in the Helpers class. The change allows the use SVG tag to be preserved during HTML sanitization, which can be important for rendering certain SVG elements correctly.

  • Updated the sanitize method in Helpers to allow the use SVG tag by passing { ADD_TAGS: ['use'] } to DOMPurify.sanitize.

@markets markets changed the title Allow use tags in sanitize Allow use tags in sanitize Sep 15, 2025
@markets markets changed the title Allow use tags in sanitize Allow use tag in sanitize Sep 15, 2025
@markets markets merged commit c7bcdb6 into master Sep 15, 2025
1 check passed
@markets markets deleted the allow_use_sanitize branch September 15, 2025 16:20
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.

3 participants