HTML एंटिटी एनकोड / डिकोड
< & जैसे वर्ण एनकोड या डिकोड करें।
About this tool
अक्षरों को HTML entities के रूप में एन्कोड करें या सादे टेक्स्ट में डिकोड करें। वेब पेज पर कोड या प्रतीक शाब्दिक दिखाने के लिए आवश्यक।
Why use it
- छोटा-से और ampersand जैसे अक्षर एस्केप करके मार्कअप न टूटे।
- entities से भरे टेक्स्ट को पढ़ने योग्य बनाएँ।
- दोनों दिशाएँ, तुरंत और स्थानीय।
Common use cases
- लेख में HTML कोड को टेक्स्ट के रूप में दिखाएँ।
- कच्ची entities दिखाने वाला टेक्स्ट ठीक करें।
- उपयोगकर्ता इनपुट को टेम्पलेट में सुरक्षित एम्बेड करें।
Tips
- HTML में डालने से पहले हमेशा उपयोगकर्ता सामग्री एस्केप करें।
- केवल कुछ अक्षर अनिवार्य एन्कोडिंग माँगते हैं; बाकी वैकल्पिक।
कैसे उपयोग करें
- टेक्स्ट पेस्ट करें।
- एनकोड या डिकोड करें।
- कॉपी करें।
अक्सर पूछे जाने वाले प्रश्न
- What are HTML entities for?
- They safely display characters like <, > and & that would otherwise be read as HTML markup.
- Can I encode and decode both ways?
- Yes, escape raw text into entities or unescape entities back into characters.
- Is my text sent to a server?
- No. Everything is processed locally in your browser.
- When should I escape HTML?
- Whenever you insert user text into a page to prevent broken layout or injection.
- Does it cover named and numeric entities?
- Yes, common named entities and numeric references are handled.
- Will it touch normal letters?
- No, only characters that need escaping are converted.