in reply to Re^4: How to parse HTML5?
in thread How to parse HTML5?
If you just want errors then maybe use tidy directly
poj#!perl use strict; my $text = join '|',qw(DOCTYPE html meta header); my $re = qr/$text/; my $filename = 'd:/perl/test.xhtml'; my $tidy = '..../tidy/bin/tidy.exe'; # change to your path my @msg = qx"$tidy -eq -utf8 $filename 2>&1"; for (@msg){ print $_ unless /$re/; } # line 10 column 1 - Warning: missing </section>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to parse HTML5?
by NRan (Novice) on Mar 10, 2016 at 11:44 UTC |