First, this is probably a duplicate. Just couldn't find any answers that worked for me.
I have a block of elements like this
<a id="folder" href="http://example.com/update.php?dir=%2Fexample%2Fimg">
<i class="fa fa-folder-o"></i>
It's simply $("#folder").text()