Oh and I've seen you really escape \ only if it's the first character.

Same here, I'd suggest to apply the same escaping rules as for the
other output, and escape '\\' '\n' and '\r' as soon as any of them
occurs in the output.



Reply via email to