Inversion of eval-string function
Posted: Tue Mar 23, 2010 1:57 pm
I have a variable, which contains some text with special symbols:
I want to save contents of this variable to the text file, with all that backslashes before quotes et cetera. Now I use function
But, may be, there exists more direct way to get "texted" value of a variable?
Code: Select all
> {some symbols \/""}
"some symbols \\/\"\""
Code: Select all
(define (gnirts-lave x)
(1 -1 (string (list x))))