A high-performance contextual encoder library to prevent Cross-Site Scripting (XSS) by encoding untrusted data for HTML, JavaScript, CSS, and URLs.
<dependency>
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder</artifactId>
<version>1.4.0</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Encodes a user input string for safe inclusion in HTML.
Always match the encoding method to the output context (HTML attribute, JavaScript string, etc.).
No dependency data recorded yet.