Yes, \s covers newlines as well as other whitespace. That part of the code works for my needs. The part that I do not know how to do is getting the whole original P element replaced by multiple new P elements. Perhaps I should write a more focused example.
In reply to Re^2: Replacing an HTML element with multiple elements using HTML::TreeBuilder
by mldvx4
in thread Replacing an HTML element with multiple elements using HTML::TreeBuilder
by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |