jQuery/JS select only elements that directly contain text
<p>I'd like to select all the <code>&lt;a&gt;</code> elements on the page with either jQuery or straight javascript. The catch is I only way to select it if the anchor directly contains text and nothing else. Is there a way to select only text nodes?</p>
