Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

CGI::Pretty (3)

Name

CGI::Pretty - module to produce nicely formatted HTML code

Synopsis

Please see following description for synopsis

Description

User Contributed Perl Documentation                             CGI::Pretty(3)



NAME
       CGI::Pretty - module to produce nicely formatted HTML code

CGI::Pretty IS DEPRECATED
       It will be removed from the CGI distribution in a future release, so
       you should no longer use it and remove it from any code that currently
       uses it.

       For now it has been reduced to a shell to prevent your code breaking,
       but the "pretty" functions will no longer output "pretty" HTML.

Alternatives
       HTML::HTML5::Parser + HTML::HTML5::Writer + XML::LibXML::PrettyPrint:

           print HTML::HTML5::Writer->new(
               start_tags => 'force',
               end_tags   => 'force',
           )->document(
               XML::LibXML::PrettyPrint->new_for_html( indent_string => "\t" )
               ->pretty_print(
                   HTML::HTML5::Parser->new->parse_string( $html_string )
               )
           );

       Marpa::R2::HTML (see the html_fmt script for examples)

       HTML::Tidy

       HTML::Parser



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE     |
       +---------------+------------------------+
       |Availability   | library/perl-5/CGI-532 |
       +---------------+------------------------+
       |Stability      | Committed              |
       +---------------+------------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-4.54.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/~leejo/CGI.



perl v5.32.0                      2022-02-03                    CGI::Pretty(3)