escape HTML entities when showing in printable format