diff --git a/preferences/preferences.php b/preferences/preferences.php
index 1fd5e8cd4a..56fc5e83b4 100755
--- a/preferences/preferences.php
+++ b/preferences/preferences.php
@@ -123,7 +123,7 @@
$def_text = $def_text != '' ? ' '.lang('default').': '.$def_text.'' : '';
}
$t->set_var('row_value',"$def_text");
+ @htmlentities($default,ENT_COMPAT,$charSet)."\"$options>$def_text");
$t->set_var('row_name',lang($label));
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($t);