my $html_local = HTML::TagParser->new($local_content); my $ele = $html_local->getElementsByTagName("title"); # get element by title tag