Js: get the contents of a <div>

I need to retreive the text inside a <div>…
I know I can do mydiv.innerHTML but is there something that retreives the text without including the html?

er… or mby there’s something like striptags() in php that removes the html…
:whistle: