HTML Entities

HTML entity encoding converts special characters into sequences that browsers render correctly without interpreting as markup. Essential for preventing XSS and displaying characters like <, >, and & in web pages. Named mode uses readable entities like &amp; while numeric mode uses &#38; format.

HTML spec
Encode mode