Hello forums !! case: Suppose i had the following var var text = "This is my text with 'quotes'"; I want to replace the ' -> \' using some function like replace() How to perform this ? Thanks in advance to all of you
[man]addslashes/man
rincewind456 wrote:[man]addslashes/man
I think he means in Javascript. Try something like; http://javascript.about.com/library/bladdslash.htm
this.value.replace(/\/g,'')
something like that