Text
String Escape
Escape and unescape strings for various languages.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type String Escape and press Return.
- Choose Escape or Unescape at the top.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Escape, or ⌘↵.
- To go the other way, press Swap or ⌘S. The output moves into the input.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| FormatEscape format for target language | JavaScript/JSON, Python, Java, C/C++, PHP, SQL, CSV, XML, Regex | JavaScript/JSON |
Example
Real output from Devly, with the default options.
Input
He said "hello" and left.
He said \"hello\"\n\tand left.
From Terminal
With the free command-line tool installed:
Terminal
devly stringescape --path input.txt # or pipe text in pbpaste | devly stringescape
Quick Switch also finds it by: escape, unescape, string, quote, backslash, json, javascript.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex TesterTest and debug regular expressions with match highlightingRegex LibraryBrowse and copy common regex patternsString DiffCompare two strings and show differencesLine SorterSort, shuffle, dedupe, and manipulate text linesText StatisticsAnalyze text for word count, character frequency, and readability