Extract text between HTML tags
问题 I have many HTML files from which I need to extract text. If it's all on one line, I can do that quite easily but if the tag wraps around or is on multiple lines I can't figure how to do this. Here's what I mean: <section id="MySection"> Some text here another line here <br> last line of text. </section> I'm not concerned about the <br> text, unless it will help wrap the text around. The area that I want always begins with "MySection" and then is ended with </section> . What I'd like to end