How to get the text of a link which has children?
<p>I'm currently trying to figure out how to get the text of a link which has children.
My html looks pretty much like this:</p>

<pre><code>&lt;a href=""&gt;
    The text I want to get
    &lt;span&gt; something I don't want to get &lt;/span&gt;
&lt;/a&gt;
</code></pre>

<p>I want to get only "The text I want to get" and not to include the children's text. <br>
Is there an easy way to do it?</p>
