escapeIniString

private fnstring escapeIniString(string val)

Escape a string for use inside a quoted INI value: control characters become backslash escapes, and `\` and `"` are escaped.

Parameters

valRaw string content.

Returns

The escaped representation (without surrounding quotes).