I am currently trying to figure out how to get the text of a link in which there are children. My html looks something like this:
<a href=""> The text I want to get <span> something I don't want to get </span> </a>
I want to get only the "Text I want to get", and not include text for children.
Is there an easy way to do this?
source share