HTML Entity Encoder
Encode text to HTML entities safely
Source Input
Processed Output
What is the HTML Entity Encoder?
HTML encoding converts reserved HTML characters into corresponding character entities (e.g., `<` becomes `<`). This prevents browsers from interpreting input as markup.
Frequently Asked Questions (FAQ)
Q: How does HTML encoding prevent XSS?
By turning `<script>` tags into plain text representations (`<script>`) so the browser displays it instead of running it.