I have a innertext like
<div contenteditable="true">
hi</br>
This is a multiple line</br>
code
</div>
I want to make it a single line and instead of
take space and split it with comma..
I tried sTextbox.split(/[\s,]+/);
but it include new line also
please suggest me to solve this problem
UPDATED
Expected output is like :
hi this is a multipleline code
..
I have to calculate sTextboxSplit[sTextboxSplit.length - 1]
and it gives sTextboxSplit = ["hi", "this", "is", "multiple","line","code" ""],
and in this it will give ""
as my last index where it my last index is code
.
I want to work this in c# mvc..