Render the document as text.
This returns the textContent of the passed elements. The result will include the contents of <script> and <style> elements. To avoid this, use .prop('innerText') instead.
textContent
<script>
<style>
.prop('innerText')
Optional
Elements to render.
The rendered document.
Render the document as text.
This returns the
textContentof the passed elements. The result will include the contents of<script>and<style>elements. To avoid this, use.prop('innerText')instead.