aminghadersohi commented on PR #37186: URL: https://github.com/apache/superset/pull/37186#issuecomment-3776084040
Thanks @betodealmeida! Refactored to use `nh3` for HTML sanitization. The implementation now: - Uses `nh3.clean()` with no allowed tags to strip all HTML - Applies `html.unescape()` afterward to preserve characters like `&` - Extracted helper functions to reduce code duplication This is much cleaner than the regex-based approach. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
