/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function trimslashes(raw:String):String { var str = new String(raw); var myPattern:RegExp = /\\'/g; str = str.replace(myPattern, "'") myPattern = /\\\\/g; str = str.replace(myPattern, "\\") return str; }