Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

JSoup Getting Text Without Wrapping Tag Under an Element

$
0
0

How do I get the following 'Some random text', and wrap it with a span?

e.g. I have the following element :

<div>
    Some random text
    <a href="some_url">Go to Link</a>
</div>

And I would have something like this :

<div>
    <span>Some random text</span>
    <a href="some_url">Go to Link</a>
</div>

Viewing all articles
Browse latest Browse all 67497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>