in reply to Re^2: How to avoid addition of tags by HTML::TreeBuilder
in thread How to avoid addition of tags by HTML::TreeBuilder

The expected output is illegal HTML; in fact so is the Tree builder version. HTML5 requires the title. Getting tools to produce incorrect output is usually be outside their scope.

If you always have the same template but differing bodies, you could just use the tree to print the body content into your template. Otherwise there might be a limited number of cases you could convert into a heuristic tree with matching template pieces to get what you want.

  • Comment on Re^3: How to avoid addition of tags by HTML::TreeBuilder

Replies are listed 'Best First'.
Re^4: How to avoid addition of tags by HTML::TreeBuilder
by Anonymous Monk on Apr 19, 2019 at 16:55 UTC
    Illegal html? Lol

      Wanting tools to go against specs? LULZ.

      "...LOL"

      It is illegal Dr Wisenheimer: Error: Element head is missing a required instance of child element title. See W3C Markup Validation Service if you believe in standards. LOL, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

        Heh. Deport it then.