Jump to content
Welcome, welcome! Come in and register, and have some developer coffee. 👨‍💻 ×
  • 1

How to extract text content from bunch of HTML tags?

Go to solution Solved by Malkuth,


Given the below, do you think you can extract the plain text among the HTML tags?

<html><head><title></title></head><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><p><p><p><p><p><p><p><p><p><p><b></b>T<i></i>o<b></b>o<i></i> <u></u>c<b></b>o<i></i>o<u></u>l<b></b><u></u> f<b></b>o<i></i>r <u></u>s<i></i>c<b></b>h<u></u>o<i></i>o<b></b>l<u></u></p></p></p></p></p></p></p></p></p></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>

I know we can use online HTML extractor, but can you explain what method would you use in finding out the text content?

Perhaps with your own example code?

Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...