discovered 03 Aug 2026
antisamy
→ View on GitHubAntiSamy is a Java library designed to provide fast and configurable cleansing of HTML input from untrusted sources, primarily to mitigate the risk of injecting malicious code, particularly JavaScript. It allows developers to enforce specific policy files governing allowable HTML and CSS, enhancing security when users submit content to web applications. Notable features include support for customizable policies, mandatory XML Schema validation for policy files, and deprecation of potentially hazardous features such as support for external stylesheets.