--- profile.module	Sun Aug  8 15:21:15 2004
+++ modules/profile.module	Sun Aug  8 15:21:30 2004
@@ -134,7 +131,7 @@
       case 'textarea':
         return check_output($value);
       case 'selection':
-        return l($value, "profile/$field->name/". drupal_specialchars($value));
+        return l($value, "profile/$field->name/". drupal_specialchars($value, ENT_QUOTES));
       case 'checkbox':
         return l($field->title, "profile/$field->name");
       case 'url':
@@ -144,7 +141,7 @@
         $fields = array();
         foreach ($values as $value) {
           if ($value = trim(strip_tags($value))) {
-            $fields[] = l($value, "profile/$field->name/". drupal_specialchars($value));
+            $fields[] = l($value, "profile/$field->name/". drupal_specialchars($value, ENT_QUOTES));
           }
         }
         return implode(', ', $fields);
