Answer the question
In order to leave comments, you need to log in
How to parse tags one by one?
There is an xpath like this:
filterXPath('//p|//img|//blockquote|//ul|//li|//strong|//b|//i')
<blockquote>
in which and <strong>
, and , thereby parsing all the text from three at once. [0] => Текст из цитаты вместе с жирным и параграфом
[1] => Жирный из blockquote
[2] => Параграф из blockquote
Answer the question
In order to leave comments, you need to log in
Here or specify exactly what you need (with all sorts of dirty tricks):
XML
<div>
<p>par</p>
<strong>strong</strong>
<divd>
<p>divpar</p>
</divd>
<blockquote>
<p>bqpar <strong>bqparstrong</strong></p>
</blockquote>
</div>
Element='<p>par</p>'
Element='<strong>strong</strong>'
Element='<p>divpar</p>'
Element='<blockquote><p>bqpar <strong>bqparstrong</strong></p></blockquote>'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question