in reply to Replacing an HTML element with multiple elements using HTML::TreeBuilder

Thanks for the example, it'd be easier to understand what you want if you showed us the HTML output you require, based on the input in your example.

  • Comment on Re: Replacing an HTML element with multiple elements using HTML::TreeBuilder

Replies are listed 'Best First'.
Re^2: Replacing an HTML element with multiple elements using HTML::TreeBuilder
by mldvx4 (Hermit) on Jul 03, 2019 at 13:33 UTC

    I'm aiming for some output like the following, not counting whitespace:

    <blockquote id="two"> <p>ddd</p> <p>eee</p> <p>fff</p> </blockquote>

    The one P would be replaced with three new P elements.