- };
-my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, 'note' );
+ };
+my $note = { field => 'note',
+ type => 'text',
+ value => sub { encode_entities($_[0]->note) }
+ };
+my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, $note );