Encoding and decoding HTML entities.
HTML entities are special codes for characters that have special meaning in HTML (e.g., `<`, `>`, `&`). Encoding prevents incorrect rendering or XSS vulnerabilities when inserting text into HTML.
To avoid conflicts with reserved markup characters and potential XSS attacks when outputting user input.
No, encoding is performed locally in the browser.