I'm using
var retval = value.replace(/<br[\s\/]?>/gi, '\n');
To strip the <br>
tags from the textarea and nl2br('$_POST('newValueHere')')
to insert into my database and to return back to jeditable to display the edits. The only problem I'm having is that each click on the editable field seems to make all the <br>
tags be written twice? This makes no sense, does anyone have any ideas what could be going on?