+ 2
How to accses text inside <p> in html
<p>text here<span><\span><\p> innerHtml gets the span as well i just only want text here and edit it
1 Answer
+ 2
Use
.textContent
<p>text here<span><\span><\p> innerHtml gets the span as well i just only want text here and edit it