What are HTML Entities?
HTML Entities are special codes used to represent characters that have reserved meanings in HTML (like `<` and `>`) or are invisible/difficult to type. This tool converts text into safe HTML entities (Escape) and restores them back to original text (Unescape).
If you write `<div>` in a webpage, the browser thinks it's a tag. To display the text '<div>', you must write `<div>`. This process is called 'Escaping'.
It is critical for security (preventing Cross-Site Scripting or XSS) and for displaying code snippets correctly on websites.
1How to Use
- Select Action: Choose 'Escape' to make text safe, or 'Unescape' to read decoded text.
- Input Text: Paste your string into the input box.
- Process: Click the button corresponding to your action.
- Copy Output: Use the resulting text in your HTML code.
β Key Features
- XSS Prevention: Neutralizes script tags by converting brackets to entities.
- Standard Mapping: Handles `&`, `<`, `>`, `"`, and `'` correctly.
- Bidirectional: Instantly switches between converting to and from entities.
- Bulk Processing: Capable of handling large blocks of code.