HTML-teckenkodare och avkodare
Konvertera HTML-teckenreferenser och utskrivbar Unicode lokalt.
- Förbered inmatningen
Välj lämpliga alternativ med kontrollerna nedan.
- Kör uppgiften
Justera kontrollerna nedan och granska förhandsvisningen.
- Använd resultatet
Kontrollera resultatet och använd tillgängliga kopierings- eller nedladdningsfunktioner.
Omfattning och gränser
Kodar HTML-tecken eller utskrivbar Unicode. Avkodar en gång enligt HTML; taggar förblir text. NUL, oparade surrogater och C1-kontroller utesluts vid kodning. Textkonvertering, ingen HTML-sanitering.
Resultat
Fyll i fälten och kör åtgärden för att se resultatet.
HTML-teckenkodare och avkodare
Convert text locally between literal characters and HTML character references. Encode ampersands, angle brackets, quotes and apostrophes as special references, or encode supported Unicode code points as decimal or hexadecimal references; decode references with a single pass. Input is limited to 100,000 characters and unsupported control or surrogate code points are rejected. This is an encoder/decoder, not an HTML sanitizer or parser.
Funktioner
- Encode special HTML characters with named or numeric references.
- Choose decimal or hexadecimal output for supported Unicode characters.
- Decode character references once while keeping literal tags as text.
- Process up to 100,000 characters locally and copy the result.
Hur man använder
- Paste the text to convert.
- Choose encode or decode and select special, decimal or hexadecimal output when encoding.
- Run the conversion and review the exact references or decoded text.
- Copy the result into the context where it will be used and validate that context separately.