diff --git a/templates/selectidp-links.php b/templates/selectidp-links.php
index 64a3f26e5234fb8c897950cfcf9f6fdb750a6766..079e8be664fb089875e76a790ee6353715a7e3ed 100644
--- a/templates/selectidp-links.php
+++ b/templates/selectidp-links.php
@@ -53,7 +53,7 @@ foreach ($this->data['idplist'] as $idpentry) {
             }
             echo('<button id="preferredidp" type="submit" class="btn" name="idp_'.
                 htmlspecialchars($idpentry['entityid']).'">'.
-                $this->t('select').'</button>"</p>');
+                $this->t('select').'</button></p>');
             echo '</div>';
         }