What alternatives are there to Hibernate Validator's @SafeHtml to validate Strings?
问题 As stated in the JavaDocs, it will be removed in a future release. Is there any alternative library which works similarly via annotations? 回答1: Let's first explain the reasons of the deprecation: we recently had a security issue (CVE) due to this very constraint. It was due to an error in our implementation but it made us realize that this was very fragile and potentially a can of worms security wise. The alternative for now would be to implement it yourself based on our latest implementation