I'm trying to extract a string from a tag in javascript by using :
document.querySelector('.title h2').textContent
But I get something like this (double quotes included) :
"(lots of spaces) String stuff (lots of spaces)"
and I actually need to retrieve only the text part (String stuff in this example) in the string, lefting behind the double quotes and the spaces.
I know I'll need some regex, but I don't know how to proceed in that case.