Source code for escaping HTML entities

HTMLEscape for Java and JavaScript, for use on you own websites.

The code is rather simple and free of charge.

HTML Escape for Java

HTML Escape for JavaScript