Hi ! I wonder how to escape a string in phobos ?
For example

auto a = [ "fooo\nbar" ];
auto b = format("%(%s%)", a);

gives b: "fooo\nbar"

Is there any other function to escape string? I'm looking for something that doesn't require to make an array at first.

For example is there string escape(string s) in phobos ? I've searched and have not found it.

Reply via email to