109
rated 0 times
[
115]
[
6]
/ answers: 1 / hits: 19413
/ 13 Years ago, wed, february 15, 2012, 12:00:00
I have the following JQuery AJAX call that sends HTML form data to my server side script to deal with. However I currently find line breaks and convert them to <br />
for display in another part of my application. I now need to make sure I am stripping out apostrophes however I am not confident on how to replace multiple characters in one go.
This is the JQuery I use currently before adding this into my AJAX.
description = $(#description).val().replace(/n/g, '<br />');
Can anyone point me in the right direction?
Thanks
More From » jquery