javascript - Replace paragraph by <br /> tag in div with contenteditable -


While pressing the Enter key on the user, while in code & lt; Br / & gt; ? After sending me, XM will have to manage the contents of that device, but some browsers & lt; P & gt; Translate new lines as , some (for example, Google Chrome) & lt; Div & gt; .

Good solution equally new line in all browsers (only & lt; p & gt; or & lt; div & gt; ) To be effective)

PS: I am using jQuery and PHP.

How about trapping the user key to press the login key?


Comments