HTML/DOM parser

X

Xah Lee

is there a module that lets me parse validated html files and store it
as a tree?

for example, i want to be able to easily, say, replace the following

<hr><p>References</p>
<pre>
• <a href=a>a...</a>
....
</pre>

to

<hr><p>References</p>
<ul>
<li><a href=a>a...</a></li>
....
</ul>

Thanks.

Xah
(e-mail address removed)
∑ http://xahlee.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top