How do I insert a backslash every time there is an apostroph
Posted: Wed Oct 19, 2005 10:43 am
Hi All
I am trying to put in a backslash everytime I recieve text from a form that has apostraphies. I recieve this text that goes into the database and then my webpage displays the text. The webpage that displays the text uses javascript and the javascript will only accept apostrophies if it is backslashed. I have used the following
addbackslash();
but it doesnt do anything
Regards
Antek
I am trying to put in a backslash everytime I recieve text from a form that has apostraphies. I recieve this text that goes into the database and then my webpage displays the text. The webpage that displays the text uses javascript and the javascript will only accept apostrophies if it is backslashed. I have used the following
addbackslash();
but it doesnt do anything
Regards
Antek