I would like to exclude some elements from DOM to extract a piece of text.
For example, with this code:
<div>foo <b>bar</b></div>
I would like to extract only the text "foo". Is there any way to do it?
Thank you very much in advance.
I would like to exclude some elements from DOM to extract a piece of text.
For example, with this code:
<div>foo <b>bar</b></div>
I would like to extract only the text "foo". Is there any way to do it?
Thank you very much in advance.