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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -