Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Could someone help me to find a 'HTML formatter' perl script? I am assured, it exists, so there are no needs to invent a wheel. Main purpose -to get nice, human readable formatting of html code and(may be) to clean a code slightly, close tags, if required. All this from web interface. I heard about HTML:Tidy, but my host have no it.

Replies are listed 'Best First'.
Re: 'HTML formatter' script
by tcf03 (Deacon) on Apr 20, 2005 at 17:40 UTC
    Can you install it (HTML::Tidy) locally at your host? and use require some-module;

    Ted
      Find already:
      http://htmltidy.movb.de/
      I can try install a HTML::Tidy, but I have no idea about a web interface..
      #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); use strict; use lib '/local_path_to_perl/cgi-bin/lib/'; use warnings; use CGI; HTML::Tidy;