I have an element that looks like this in the Developer Console:
<span>
"Total Items: "
"10"
</span>
I want to get only the second string (the "10") out of it, but textContent
, innerText
, outerText
, innerHTML
and outerHTML
all concatenate the value into a single string (with no newline).
How can I detect where the split was in the original HTML?
I'm using Javascript (Node.js), so a JQuery or Cheerio solution would work for me.