문자열 이스케이프

특수 문자를 이스케이프 시퀀스로 바꿔 문자열이나 코드에 표현합니다.

입력: 텍스트결과: 텍스트

텍스트 입력

도구 옵션

예제

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

입력

He said "hello".

Expected answer

"He said \"hello\"."
탈출 수준
Minimal
탈출 문자
Double
JSON 호환
On
ES6 호환
On
대문자 16진수
Off
Represent 'C:\\logs\\release.txt' as a JSON string

입력

C:\logs\release.txt

Expected answer

"C:\\logs\\release.txt"
탈출 수준
Minimal
탈출 문자
Double
JSON 호환
On
ES6 호환
On
대문자 16진수
Off
Represent 'line one\nline two' as a JSON string

입력

line one
line two

Expected answer

"line one\nline two"
탈출 수준
Minimal
탈출 문자
Double
JSON 호환
On
ES6 호환
On
대문자 16진수
Off
Represent 'tab\tseparated' as a JSON string

입력

tab	separated

Expected answer

"tab\tseparated"
탈출 수준
Minimal
탈출 문자
Double
JSON 호환
On
ES6 호환
On
대문자 16진수
Off
Represent "single quote: '" as a JSON string

입력

single quote: '

Expected answer

"single quote: '"
탈출 수준
Minimal
탈출 문자
Double
JSON 호환
On
ES6 호환
On
대문자 16진수
Off
complex

입력

4ec985786aa10a7515d8be2d.bin

115 bytes

다운로드

Expected answer

null\0backspace\btab\tnewline\nverticaltab\x0bformfeed\fcarriagereturn\rdoublequote"singlequote\'hex\xa9unicode\u2665codepoint\u{1d306}
탈출 수준
Special chars
탈출 문자
Single
JSON 호환
Off
ES6 호환
On
대문자 16진수
Off
double quotes

입력

Hello "World"!

Expected answer

Hello \"World\"!
탈출 수준
Special chars
탈출 문자
Double
JSON 호환
Off
ES6 호환
On
대문자 16진수
Off
single quotes

입력

Escape 'these' quotes.

Expected answer

Escape \'these\' quotes.
탈출 수준
Special chars
탈출 문자
Single
JSON 호환
Off
ES6 호환
On
대문자 16진수
Off
special characters

입력

1203ab8e4358d1fe9949e85d.bin

100 bytes

다운로드

Expected answer

Fizz & buzz\n\ttabbed newline\rcarriage returned line\nbackspace character: \"\b\" form feed character: \"\f\"
탈출 수준
Special chars
탈출 문자
Double
JSON 호환
Off
ES6 호환
On
대문자 16진수
Off

매개변수

매개변수기본값입력 및 선택 항목
탈출 수준특수 문자특수 문자, 모든 것, 최소
탈출 문자단일단일, 더블, 백틱
JSON 호환false켜짐 또는 꺼짐
ES6 호환true켜짐 또는 꺼짐
대문자 16진수false켜짐 또는 꺼짐

관련 도구

유틸리티

작업 참고 자료

원본 기술 문서 보기 (English)