hi.. im trying to write the contents of this page via JavaScript.. no matter what I do it isn't working.. any help would be appreciated.
$URL = "my $content = get($URL);
$content =~ s/'/\\'/g;
$content =~ s/\?/\\?/g;
$content =~ s/;/\\;/g;
$content =~ s/"/\\"/g;
$content =~ s/@/\\@/g;
$content =~ s/&/\\&/g;
$content =~ s/\n//g;
$content =~ s/\\n//g;
print "Content-type: text/html\n\n";
print "document.write('$content')\;\n";
$URL = "my $content = get($URL);
$content =~ s/'/\\'/g;
$content =~ s/\?/\\?/g;
$content =~ s/;/\\;/g;
$content =~ s/"/\\"/g;
$content =~ s/@/\\@/g;
$content =~ s/&/\\&/g;
$content =~ s/\n//g;
$content =~ s/\\n//g;
print "Content-type: text/html\n\n";
print "document.write('$content')\;\n";