Александр
всем привет)
подскажите как из такой строки
`<div class="content">
<div class="newssticker"> ... </div>
<h2>Header</h2>
<p> Some text </p>
<p>Even more text</p>
<a href="/">Some link</a>
<hr>
<h2>Another header</h2>
</div>`
достать содержимое между h2 и hr достать нужно только текст
может есть кто знает как это можно сделать?
а если так будет:
`<div class="content">
<div class="newssticker">
<h2>Header</h2>
<p>Some text</p>
<p>Even more text</p>
<a href="/">Some link</a>
<hr />
<h2>Another header</h2>
</div>
<h2>Header</h2>
<p>Some text</p>
<p>Even more text</p>
<a href="/">Some link</a>
<hr />
<h2>Another header</h2>
</div>
`
внутри .newssticker тоже парсить?