How to convert a string with special characters escaped to the actual special chars?
For example, if I have this:
s = "hello\\nworld"
The output of puts
is naturally this:
> puts s
hello\nworld
But how do I transform it into this?
hello
world
In other words, is there any function to unescape backslashed characters?