'Jsoup get text inside span-tag before each child in order
How do I get each text inside before each child tag? I'm using JSoup.
I want to get them in order one by one, like this:
- "These are some things to think about"
- "and"
- "Its important to do things you enjoy and have a good time."
- ", cleaning, be kind to yourself and others."
<span style=\"font-weight: 400;\">**These are some things to think about**
<a href=\"">calling</a>,
<a href=\"https://www.1177.se/om-1177-vardguiden/e-tjanster-pa-1177-vardguiden/det-har-kan-du-gora-nar-du-loggat-in/las-din-journal/las-din-journal-via-natet/\">sleeping</a>,
<a href=\"https://www.1177.se/om-1177-vardguiden/e-tjanster-pa-1177-vardguiden/det-har-kan-du-gora-nar-du-loggat-in/las-din-journal/las-din-journal-via-natet/\">work</a>,
<a href=\"https://www.1177.se/om-1177-vardguiden/e-tjanster-pa-1177-vardguiden/det-har-kan-du-gora-nar-du-loggat-in/las-din-journal/las-din-journal-via-natet/\">health</a>
**and**
<a href=\"https://www.1177.se/om-1177-vardguiden/e-tjanster-pa-1177-vardguiden/det-har-kan-du-gora-nar-du-loggat-in/las-din-journal/las-din-journal-via-natet/\">having fun</a>.
**Its important to do things you enjoy and have a good time.**
<a href=\"https://www.google.com/\">eating well</a>
**, cleaning, be kind to yourself and others.**
</span>
</p>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
