I have a div that has contenteditable = true. When I enter text into it and press Enter, the cursor moves to the next line, adding <br> to the previous line.
While I am using the submit button, I am using .text() to get the contents of the div. These stripes are any html tags in the div, removing all <br> tags. Thus, no line is interrupted.
I want to know how I can save line breaks when submitting a form. Thanks for the help...
source share