diff --git a/index.php b/index.php
index 1c5c2ecedda2fd8f27182b62a018e3ec81dc6f52..3dc4c7f4cd6bead9aa7995202417d28d48354106 100644
--- a/index.php
+++ b/index.php
@@ -128,6 +128,7 @@ foreach ($h5ps as $h5p) {
 
     // Activity name.
     $attrs = ($h5p->visible ? '' : ' class="dimmed"');
+    $h5p->name = format_string($h5p->name);
     $row[] = "<a href=\"view.php?id={$h5p->coursemodule}\"{$attrs}>{$h5p->name}</a>";
 
     // Activity type.