- or download this
#!/usr/bin/env perl
use strict;
use warnings;
...
print header(),
escapeHTML($dig);
- or download this
<div id="result" style="white-space:pre"></div>
- or download this
# CGI change
print header(),
pre(escapeHTML($dig));
# plus JS change
$("#result").html(res);