I have a html page like this :
<div id="oDiv" contenteditable style="height:200px;width:100%;border:inset #99ccff thin;overflow:auto;">
<p>test <hr > test2</p>
</div>
<input type="button" onClick="oArea.value=oDiv.innerHTML;" value="oDiv.innerHTML">
<textarea id="oArea" style="height:200px;width:100%;border:inset #99ccff thin;">
</textarea>
When I click on the button I receive this in the textarea :
<P>test
<HR>
test2
<P></P>
Why there is a new tag 'p' How I can slove the problem
Thanks in advance,
Dimitri