Jeditable doubling up on linebreaks every edit
Posted
by st3
on Stack Overflow
See other posts from Stack Overflow
or by st3
Published on 2010-06-01T20:29:22Z
Indexed on
2010/06/01
21:13 UTC
Read the original article
Hit count: 249
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?
© Stack Overflow or respective owner