You can buy this project and download/modify it how often you want.
package org.owasp.esapi; public interface Encoder { String encodeForHTML(String input); }