You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Boysenberry Payne <bo...@humaniteque.com> on 2006/02/06 01:30:06 UTC

For those familiar with HTML::TreeBuilder and HTML::Element

Hello,

I'm trying to get upper case html with HTML::TreeBuilder via
HTML::Element->as_HTML
via:

# Build HTML Tree
$self->{tree} = HTML::TreeBuilder->new();
my $tree = $self->{tree};

# Parse HTML
$tree->parse( $html );
$tree->eof;

my $new_html = $tree->as_HTML( '<>&', "", {} );

$html was:

<P ALIGN="LEFT">Test</P>

$new_html after removing <html><body> tags:

<p align="left">Test</p>

Is there a way to make it output uppercase html?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com