public static String stringInJs(String str){
return str.replaceAll("\"","\\\\\"").replaceAll("\'","\\\\\'");
}
return str.replaceAll("\"","\\\\\"").replaceAll("\'","\\\\\'");
}

1 dallaslu May 20, 2015 str.replaceAll("\u22","\u2f\u22"); |