How does lxml get the text that this node is sandwiched between the child nodes?

such as

<a>A</a>
B
<a>C</a>

< / div >

how do I get the text B under the div tag?

Mar.20,2022
Menu