0

I have html which have couple headers. Single one looks like this:

<h2 class="product-name">
                <a href="url">
                    text</a>
            </h2>

How I can get the 'text' only if there is class=product-name in the h2? I tried some ways to do this and none of them worked.

Wakun
  • 86
  • 1
  • 3
  • 15

0 Answers0