Source Code:
Result:
Return the text content of all p elements
This is a paragraph.
This is
another
paragraph.
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself