- What does this produce?
- An escaped single-line string representation of the XML — suitable for embedding in JSON, YAML, or source code string literals.
- How are newlines handled?
- Converted to `\n` escape sequences. The resulting string is a single line that decodes back to the original multi-line XML.
- What's the difference from URL encoding?
- URL encoding uses `%XX` sequences; string escape uses backslash escapes (`\n`, `\t`, `\"`). Different contexts use different schemes.
- Can I get raw escaped output without quotes?
- Yes — toggle 'wrap in quotes' off. Useful when your target format adds its own quotes.