[jQuery] getting text in between text nodes

[jQuery] getting text in between text nodes


I'm trying to get various pieces of data from a text node. It makes
sense to me to use children and how to get parents, but how do you get
the text in between text nodes?
Example Code:
<p id='1'>
example text <span id='2'>In side a span</span>
More text <span id ='3'>Another span</span>
end of example text

I need to get the code in between the two span's. If I do "$
('p').children();" I'd get the span tags, but not the other text. My
current thought is to get the html() of the p tag and split it up into
an array. If there is another way, I'd really like to know how i can
do it.