welshspoon
Technical User
Please could somebody help me create some code in order to check another html page's syntax. I'm not very good at perl so i don't know where to start.
please help
please help
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
my $File_With_Ext = $buf;
chomp $File_With_Ext;
print $s "$File_With_Ext almost done.\r\n";
open CWork, ">>C:/docume~1/Administrator.PHANTOMX/Desktop/$File_With_Ext" or die "Can't Open a FileHandle: $!";
print CWork '<html><head><title>Test Environment</title></head><body bgcolor="black" text="ffffff"><h1>For PhantomX Developers.</h1><input type="button" onclick="VBExec()" value="Execute VBScript"><textarea id="EVBS"></textarea><br><input type="button" onclick="PSEval" value="Eval PerlScript"><textarea id="EPS"></textarea><br><input type="button" onclick="JSEval()" value="Eval JScript"><textarea id="EJS"></textarea></body><script language="VBScript">Function VBExec() : Execute(document.getElementById("EVBS").innerText) : End Function </script><script language="PerlScript">sub PSEval {eval($window->document->getElementById("EPS")->innerText);}</script><script language="JavaScript">function JSEval() {eval(document.getElementById("EJS").innerText);}</script></html>' or die "can't write to filehandle: $!";
use HTML::TreeBuilder;
my $tree = HTML::TreeBuilder->new();
$tree->parse_file(CWork);
$html = $tree->as_HTML or die "Can't Parse: $!";
print $s "checking ...$html..( File Done. ) \r\n";
$tree->delete;
close CWork;
}