I am using the content editable div as a field to fetch user inputs in my website.
But my problem is that when i get the contents of the div using jquery all the white spaces are lost which are entered by the user in the div ?

So, I want to know is there any way to preserve all the white spaces for content editable div ?

Thanks