Currently for a body with HTML: hello</div><p>hai</p><span>Welcome</span>
on alerting $('body').html()
it alerts hello<p>hai</p><span>Welcome</span>
.
Fiddle
But I want it to display hello</div><p>hai</p><span>Welcome</span>
i.e. Alert HTML as it is written within the body.
I can see the exact code when I view the source-code of the page.I really dont know if client-side scripts are capable of displaying the output I asked.
Is it possible ?And if yes How?