Hello monks. I am looking for suggestions/guidance on a problem I am working on.
I have multiple html files that are all slightly different and may contain different tags in each. I want to parse them and convert the tags to a string based on certain rules. For instance:
<p> some text </p>Would get converted to text="some text" At first I was doing this will loops and arrays and regex but the code quickly started growing out of control. Then I tried HTML::TREEBUILDER but it didn't seem to work with the tags the way I needed.
Any advice would be greatly appreciated
Thanks in advannce
In reply to Parsing and converting HTML by tevolo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |