check https://github.com/OWASP/java-html-sanitizer https://jsoup.org/
check
https://github.com/OWASP/java-html-sanitizer
https://jsoup.org/