Improving on halex's trick, you can take advantage of the fact that .children() finds only DOM nodes and ignores text nodes:
var text = $('#d1').clone().children().remove().end().text(); // string "Hallo "
...but I prefer the .nodeType technique, because it's more clear what you're doing.