Lets say I have the html as below:
<h3 class="search-result-title">
This is a test
<small class="search-result-subtitle">
Some more explanation
</small>
</h3>
How can I filter the text This is a test
without the small
?
Edit: I am using it with the symfony Dom Crawler.
So I have filter(a. h3 search-result-title);
But I don't want the contents of the small
element.