Ken generously researched into HTML::Tidy and convincingly noted:

from my reading I'd suggest changing to HTML::Tidy5 ...Everything about that module indicates that it is very old ...

Yeah, I looked into HTML::Tidy5 after trying to build libtidyp from the source at its github repo; I changed lanes because the C coding in one header file was causing a fatal error in gcc/cpp. I got a solution for that, btw (on SnarkOverflow), and was ultimately able to create a static libtidyp.a from the object code. That's because other problems I encountered included having libtool hang forever–no libtool, no .dll. That's why I stopped at having a static library. But back to HTML::Tidy5: it's very different from HTML::Tidy under the hood (or "bonnet" if you prefer ;-), in that it just invokes the stand-alone binary installed or locally built from tidy-html5, whereas HTML::Tidy was a true Perl extension using XS to interface with the C tidyp lib.

As for one obvious question some will have after reading about my adventure, to wit "why go to all that trouble if you know there's a modern replacement?" ...I'm just stubborn like that. I get a certain way into a problem and then I just don't want to let it go without some substantial resolution.

    — Soren

Sep 20, 2025 at 01:04 UTC


In reply to Re^2: Let's play 'explain the error' in test suite for HTML::Tidy by Intrepid
in thread Let's play 'explain the error' in test suite for HTML::Tidy by Intrepid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.