{
  "slug": "string-escaper",
  "name": "gizza-ai/string-escaper",
  "version": "0.1.0",
  "title": "String Escaper — Escape for JSON, JS, HTML, URL, Shell, SQL, Regex — gizza.ai",
  "description": "Escape (or unescape) any string for JSON, JavaScript, HTML, URL, shell, SQL, or regex. Spec-aware escaping that runs in your browser; nothing is uploaded.",
  "tags": [
    "string escaper",
    "escape string",
    "json escape",
    "html escape",
    "url encode",
    "sql escape",
    "regex escape",
    "shell escape",
    "javascript escape"
  ],
  "category": "encoding",
  "urls": {
    "page": "https://gizza.ai/tools/string-escaper/",
    "markdown": "https://gizza.ai/tools/string-escaper/index.md",
    "descriptor": "https://gizza.ai/tools/string-escaper/tool.json",
    "deep_link_example": "https://gizza.ai/tools/string-escaper/?text=He%20said%20%22hi%22%0ALine%20two&target=json&mode=escape&quotes=true"
  },
  "cli": "gizza tool string-escaper 'He said \"hi\"\nLine two' 'target=json'",
  "tool": {
    "description": "Escape (or unescape) a string for a chosen target syntax: JSON, JavaScript, HTML, URL, shell, SQL, or regex. mode=escape (default) or mode=unescape; unescape works for json/javascript/html/url only. Set quotes=true to wrap json/javascript/sql output in surrounding quotes.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "mode": {
          "default": "escape",
          "enum": [
            "escape",
            "unescape"
          ],
          "type": "string"
        },
        "quotes": {
          "default": false,
          "type": "boolean"
        },
        "target": {
          "enum": [
            "json",
            "javascript",
            "html",
            "url",
            "shell",
            "sql",
            "regex"
          ],
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "target"
      ],
      "type": "object"
    }
  }
}