java - converting string to string literal -


possible duplicate:
how convert string java string literal?

is there library function takes string , converts corresponding string literal? example:

please say\ask "what?" 3 times! -> "please say\\ask \"what?\" 3 times!"

i think commons lang stringutils that

http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/stringescapeutils.html


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -