Once you're on Symfony 6.1, [use the new HTML Sanitizer](https://symfony.com/doc/current/html_sanitizer.html) where appropriate.