HTML entity encoder
I-encode ang mga HTML entity
Tumatakbo sa iyong browser · Walang upload
Nasa Ingles pa sa ngayon ang tool na ito at ang mga tagubilin sa pahinang ito. Pareho itong gumagana: lahat ay tumatakbo sa iyong browser.
Masyadong luma ang iyong browser para patakbuhin ang tool na ito. Paki-update ito, o gumamit ng kasalukuyang bersyon ng Chrome, Edge, Firefox o Safari.
- Walang umaalis sa iyong device
- Walang limitasyon sa laki mula sa server
- Walang sign-up, walang watermark
- Libre
How to encode HTML entities
- Paste your text or code.
- Choose whether to escape quotes and how to write non-ASCII characters.
- Copy the encoded result.
Which characters?
- Always: & < > (and " ' for attribute values).
- Characters such as é, © or emoji only need encoding if the page isn't UTF-8. Choose named (é), decimal (é) or hexadecimal (é) entities.
Mga madalas itanong
Is this enough to prevent XSS?
Escaping is the right step for text placed inside HTML elements and quoted attributes. Inside JavaScript, URLs or CSS, other rules apply; use your framework's escaping for those.
Is my text uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.