{"category":"text","endpoint":"https://setget.net/v1/tools/escape-unescape","examples":[{"input":{"format":"html","text":"<a href=\"x\">Tom & Jerry</a>"},"output":{"text":"&lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&lt;/a&gt;"}},{"input":{"direction":"unescape","format":"url","text":"caf%C3%A9%20au%20lait"},"output":{"text":"caf\u00e9 au lait"},"title":"Decoding a URL"},{"input":{"format":"shell","text":"it's here"},"output":{"text":"'it'\"'\"'s here'"},"title":"Quoting for a POSIX shell"},{"input":{"format":"json","text":"Line 1\nSay \"hi\""},"output":{"text":"\"Line 1\\nSay \\\"hi\\\"\""},"title":"A JSON string literal"}],"input_schema":{"additionalProperties":false,"properties":{"direction":{"default":"escape","description":"Escape plain text, or turn escaped text back into plain text.","enum":["escape","unescape"],"type":"string"},"format":{"description":"What the text is being prepared for.","enum":["html","url","json","shell","regex","csv"],"examples":["html"],"type":"string"},"text":{"description":"The text to escape or unescape.","examples":["<a href=\"x\">Tom & Jerry</a>"],"type":"string"}},"required":["text","format"],"type":"object"},"keywords":["escape","unescape","html entities","url encode","percent encoding","json escape","shell quote","regex escape","csv quote","html decode"],"related":["url-encode","html-entities","unicode-inspect","json-format"],"slug":"escape-unescape","summary":"Escape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.","tier":"inline","title":"Escape and unescape text","url":"https://setget.net/tools/escape-unescape"}
