diff --git a/mod/choice/renderer.php b/mod/choice/renderer.php
index e3617b5e47e..941ec66af46 100644
--- a/mod/choice/renderer.php
+++ b/mod/choice/renderer.php
@@ -63,12 +63,10 @@ class mod_choice_renderer extends plugin_renderer_base {
 
             $labeltext = $option->text;
             if ($option->maxanswers) {
-                $labeltext .= "<br/>";
-                $labeltext .= get_string("taken", "choice") . ": ";
-                $labeltext .= $option->countanswers;
-                $labeltext .= "<br/>";
-                $labeltext .= get_string("limit", "choice") . ": ";
-                $labeltext .= $option->maxanswers;
+                $labeltext .= html_writer::empty_tag('br');
+                $labeltext .= get_string("taken", "choice") . ": {$option->countanswers}";
+                $labeltext .= html_writer::empty_tag('br');
+                $labeltext .= get_string("limit", "choice") . ": {$option->maxanswers}";
             }
             if (!empty($option->attributes->disabled)) {
                 $labeltext .= ' ' . get_string('full', 'choice');
