Zeichenkette escapen

Sonderzeichen als Escape-Sequenzen für Zeichenfolgen oder Quellcode darstellen.

Eingabe: TextErgebnis: Text

Texteingabe

Optionen

Beispiele

Represent 'He said "hello".' as a JSON string

Eingabe

He said "hello".

Expected answer

"He said \"hello\"."
Fluchtstufe
Minimal
Fluchtzeichen
Double
JSON-kompatibel
On
ES6 kompatibel
On
Großbuchstaben-Hex
Off
Represent 'C:\\logs\\release.txt' as a JSON string

Eingabe

C:\logs\release.txt

Expected answer

"C:\\logs\\release.txt"
Fluchtstufe
Minimal
Fluchtzeichen
Double
JSON-kompatibel
On
ES6 kompatibel
On
Großbuchstaben-Hex
Off
Represent 'line one\nline two' as a JSON string

Eingabe

line one
line two

Expected answer

"line one\nline two"
Fluchtstufe
Minimal
Fluchtzeichen
Double
JSON-kompatibel
On
ES6 kompatibel
On
Großbuchstaben-Hex
Off
Represent 'tab\tseparated' as a JSON string

Eingabe

tab	separated

Expected answer

"tab\tseparated"
Fluchtstufe
Minimal
Fluchtzeichen
Double
JSON-kompatibel
On
ES6 kompatibel
On
Großbuchstaben-Hex
Off
Represent "single quote: '" as a JSON string

Eingabe

single quote: '

Expected answer

"single quote: '"
Fluchtstufe
Minimal
Fluchtzeichen
Double
JSON-kompatibel
On
ES6 kompatibel
On
Großbuchstaben-Hex
Off
complex

Eingabe

4ec985786aa10a7515d8be2d.bin

115 bytes

Herunterladen

Expected answer

null\0backspace\btab\tnewline\nverticaltab\x0bformfeed\fcarriagereturn\rdoublequote"singlequote\'hex\xa9unicode\u2665codepoint\u{1d306}
Fluchtstufe
Special chars
Fluchtzeichen
Single
JSON-kompatibel
Off
ES6 kompatibel
On
Großbuchstaben-Hex
Off
double quotes

Eingabe

Hello "World"!

Expected answer

Hello \"World\"!
Fluchtstufe
Special chars
Fluchtzeichen
Double
JSON-kompatibel
Off
ES6 kompatibel
On
Großbuchstaben-Hex
Off
single quotes

Eingabe

Escape 'these' quotes.

Expected answer

Escape \'these\' quotes.
Fluchtstufe
Special chars
Fluchtzeichen
Single
JSON-kompatibel
Off
ES6 kompatibel
On
Großbuchstaben-Hex
Off
special characters

Eingabe

1203ab8e4358d1fe9949e85d.bin

100 bytes

Herunterladen

Expected answer

Fizz & buzz\n\ttabbed newline\rcarriage returned line\nbackspace character: \"\b\" form feed character: \"\f\"
Fluchtstufe
Special chars
Fluchtzeichen
Double
JSON-kompatibel
Off
ES6 kompatibel
On
Großbuchstaben-Hex
Off

Parameter

ParameterStandardwertEingabe und Auswahl
FluchtstufeSonderzeichenSonderzeichen, Alles, Minimal
FluchtzeichenEinzelEinzel, Doppel, Backtick
JSON-kompatibelfalseEin oder aus
ES6 kompatibeltrueEin oder aus
Großbuchstaben-HexfalseEin oder aus

Ähnliche Werkzeuge

Werkzeuge

Referenz zur Operation

Technische Originaldokumentation ansehen (English)