Note:This tool escapes HTML entities by replacing special characters (<, >, &, ", ') with their HTML entity equivalents. Use this to safely display user input in HTML content.
About this tool
Use it to
Safely display user-generated content in HTML
Prevent XSS attacks by escaping HTML
Display code snippets in web pages
Encode special characters for HTML attributes
User Comment Display
Escape "<script>alert('XSS')</script>" to "<script>alert('XSS')</script>" to safely display user input.
Code Example
Escape "if (x < 10 && y > 5)" to "if (x < 10 && y > 5)" for display in HTML.