Render the document as text.
This returns the textContent of the passed elements. The result will include the contents of script and stype elements. To avoid this, use .prop('innerText') instead.
textContent
script
stype
.prop('innerText')
The rendered document.
Elements to render.
Render the document as text.
This returns the
textContent
of the passed elements. The result will include the contents ofscript
andstype
elements. To avoid this, use.prop('innerText')
instead.Returns
The rendered document.