I am working on one application, i am facing one problem on Internet Explorer while retrieving inner HTML of div.
I have below input for retrieving :
<div> This is first segment</div>
I have used jquery script to extract content. i.e.
$('div').html();
Output after using above statement :
This is first segment
Here not retrieving leading space present in div.
I am expecting here is :
This is first segment
I am facing this problem on Internet Explorer, It's working properly on FireFox.
Please suggest your thoughts on this.
Thanks in advance