package HTML::Feature::Engine::TagStructure;
use strict;
use warnings;
use base qw(HTML::Feature::Engine);
use HTML::TreeBuilder;
use Statistics::Lite qw(statshash);
use HTML::Feature::Result;
sub run {
my $self = shift;
my $c = shift;
my $html_ref = shift;
$self->_tag_cleaning( $c, $html_ref );
return $self->_score( $c, $html_ref );
}
sub _tag_cleaning {
my $self = shift;
my $c = shift;
my $html_ref = shift;
return unless $html_ref && $$html_ref;
# preprocessing
$$html_ref =~ s{}{}xmsg;
$$html_ref =~ s{