免费 · 开发
JavaScript 字符串转义.
将文本转义为安全的双引号 JavaScript 字符串字面量,或解码兼容 JSON 的字符串。
LOCAL PROCESSING · NO ACCOUNTUpdates as you type
使用JavaScript 字符串转义的步骤
输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。
限制与支持格式
输入内容在您的设备上处理。
英语技术说明
Decoding supports JSON string syntax only; arbitrary JavaScript is never evaluated.
Escape text into a safe double-quoted literal or decode a JSON-compatible string. Decoding supports JSON string syntax only; arbitrary JavaScript is never evaluated. Source is processed locally; generated code is not executed.
Generate the included sample to inspect the output.