Encode special characters to HTML entities or decode HTML entities back to readable text. Supports named and numeric entities.
HTML entities are special codes used to represent characters that have special meaning in HTML, like <, >, &, and quotes. They prevent browsers from interpreting these characters as HTML markup.
Use HTML encoding when displaying user-generated content on web pages to prevent XSS attacks, or when you need to display special characters like < and > as text.
Named entities use readable names like & while numeric entities use character codes like &. Both represent the same character but named entities are more human-readable.