Convert HTML entities to/from their character equivalents. Required for escaping special characters in HTML.