Next:
HTML::BreakupText
Previous:
HTML::AddNoFollow
 [Table of Contents]

HTML::Balance



NAME

HTML::Balance - A simple Perl module to ensure HTML is "balanced".

SYNOPSIS

    #!/usr/bin/perl -w
    use HTML::Balance;
    use strict;

    my $html = q[ <p><i>This is a <b>test</i></p>];

    my $output = HTML::Balance::balance( $html );

DESCRIPTION

If you wish to display user supplied HTML text you may well find yourself a victim of people submitting malformed text, with tags that are not closed.

This module is designed to prevent that.

SOURCE

This code was taken from discussions held on Perlmonks. For full details please see the following URI:

http://www.perlmonks.org/?node_id=534760

balance

  Balance some HTML using the HTML::TreeBuilder module.
  This is designed to ensure all open HTML tags are closed.

AUTHOR

Steve Kemp

http://www.steve.org.uk/

LICENSE

Copyright (c) 2005 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.


[Top] Generated by HTML::FromPod 0.49 on Fri Nov 21 03:03:57 2008