HTML Encoding and XSS Prevention
Cross-site scripting (XSS) occurs when an attacker injects script tags or event handlers into a web page. HTML encoding converts < to < and > to >, preventing the browser from interpreting injected content as executable HTML.