rusackas opened a new pull request, #31358: URL: https://github.com/apache/superset/pull/31358
Fixes [https://github.com/apache/superset/security/code-scanning/1226](https://github.com/apache/superset/security/code-scanning/1226) To fix the problem, we should ensure that all HTML tags are removed from the input string, even if they are nested or malformed. One way to achieve this is to repeatedly apply the regular expression replacement until no more replacements can be performed. This approach ensures that all instances of HTML tags are removed. We will modify the `removeHTMLTags` function to apply the regular expression replacement in a loop until the input string no longer changes. This ensures that all HTML tags are removed, regardless of their structure. _Suggested fixes powered by Copilot Autofix. Review carefully before merging._ -- 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]
