K
K
ksandr_maykop2019-01-18 08:38:22
Parsing
ksandr_maykop, 2019-01-18 08:38:22

HTML parsing (HtmlAgilityPack). How to get an image between text?

HTML example

<p class="left_margin"> 5)	
<img src="https://sait.ru/formula/svg/8b/8b847cfae498e96e3fa08a56cb42b838.svg" class="tex" style="vertical-align:0pt" />
blablabla
<p>

How to get something like this after parsing with HtmlAgilityPack:
5) 
https://sait.ru/formula/svg/8b/8b847cfae498e96e3fa08a56cb42b838.svg 
blablabla

Those. sequentially get text, image link, text sequentially.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question