HTML Entities
Encode and decode HTML entity character representations safely
TL;DR Summary & Citation: [HTML Entities] is used to Encode and decode HTML entity character representations safely. Core input and files are processed in the current browser and are not sent to the PocketKit API. The page records only an aggregate tool-use count that excludes input content.
How HTML entity conversion works
The tool converts characters like <, >, &, " to and from HTML entities (< > &) locally so content is not parsed as tags. Text is not uploaded.
Usage Guidelines & Tips
- Escape user input or code snippets before showing them on a page to prevent XSS and layout breakage.
- Decoding is for reading entities as plain text; do not decode untrusted content and insert it into the DOM.
Frequently Asked Questions
1. Why escape HTML entities?
Characters like <, >, & have special meaning in HTML; showing code or user input raw gets parsed as tags or even causes XSS, so escaping to < etc. displays safely.
2. Does conversion upload content?
No. Encoding and decoding both run locally in the browser.