This script converts special HTML characters to their entities version inside user entered data such as a TEXTAREA before the form is submitted. Specifically:
- ‘<‘ becomes ‘<’
- ‘>’ becomes ‘>’
- ‘”‘ (double quote) becomes ‘"’
- ”’ (single quote) becomes ‘'’
- ‘&’ becomes ‘&’