Easy HTML Parser to translate to rich text?

I find easy HTML Parser to translate to rich text. eg:

<html>
<body>
<a href="http://www.google.com/">Google</a>
<img src="http://images.google.com/intl/en_us/images/logos/images_logo.gif" alt="Google image logo" />
<ol>
<li>first</li>
<li>second</li>
</ol>
<ul>
<li>apple</li>
<li>orange</li>
</ul>
<table><tr><td>cell a</td><td>&nbsp;</td><td>cell b</td></tr><tr><td>cell c</td><td>cell d</td><td>cell e</td></tr><table>

</body>
</html>

in

Google (link:http://www.google.com/) (img:Google images logo)

1. first
2. second

- apple
- orange

cell a(tab) (tab)cell b
cell c(tab)cell d(tab)cell e

using the xml / xslt libraries for this is too great.

+3
source share
2 answers

You could take a look at the source of the open source text browser (fe lynx).

+1
source

I finally chose htmlcxx for this problem. This is quite light weight.

0
source

Source: https://habr.com/ru/post/1713578/


All Articles