HTML Escaping converts HTML special characters into their corresponding HTML entities to prevent the browser from interpreting them as tags or scripts. It is commonly used to display user input safely and prevent XSS attacks.
& β &< β <> β >" β "" β '<script>alert("XSS")</script> becomes <script>alert('XSS')</script> after escaping, allowing it to be safely displayed on a page.