get text content javascript
How to Get Text Content with JavaScript
If you want to manipulate or retrieve the text content of an HTML element with JavaScript, there are a few different methods available to you.
Method 1: innerText or textContent
The most straightforward way to get the text content of an element is