Just use the "text" function. For instance if your html is look like this:
<div class="target">
Hello <span>World!</span>
</div>
Then your extract-to rule is similar to this:
<extract-to field="my-field">
<text>
<expr value=".target"/>
</text>
</extract-to>