in reply to Re: Match text from txt to html
in thread Match text from txt to html
It looks like you want a parser. HTML::Parser will do almost exactly what you want, although you may need to handle the extra HTML tags in the input.
No. HTML::Parser low level, it doesn't give you tree. A html document is a tree ( Document Object Model).
You can use XML::Twig or HTML::TreeBuilder::XPath, XML::LibXML ...
Or as marto shows Mojo::DOM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Match text from txt to html
by jcb (Parson) on Sep 05, 2019 at 01:40 UTC | |
by Anonymous Monk on Sep 06, 2019 at 04:04 UTC | |
by jcb (Parson) on Sep 06, 2019 at 04:09 UTC | |
by Your Mother (Archbishop) on Sep 06, 2019 at 05:03 UTC | |
by jcb (Parson) on Sep 06, 2019 at 22:01 UTC | |
by Anonymous Monk on Sep 06, 2019 at 08:31 UTC | |
by jcb (Parson) on Sep 06, 2019 at 23:09 UTC | |
|