So if I have a string of HTML, I was wondering how I would go about getting an array of parsed elements from that string that are of a certain class. For example, if I had a string that contained the following HTML:
<div>
<div class="a">
<div class="b">
</div>
</div>
<div class="a">
<div class="b">
</div>
</div>
<div class="a">
<div class="c">
</div>
</div>
</div>
How would I get an array of all of the elements with a class of "b"? I have tried looking for a solution but I cannot find anything that works when the elements you are looking for are nested a couple layers.