diff --git a/lib/models/LogEvent.php b/lib/models/LogEvent.php
index 1d9a52bcab55b2d06a23b0448456c66c7e315946..31a33b26be956ddecf2ce7d0d45f2db8d7de56ef 100644
--- a/lib/models/LogEvent.php
+++ b/lib/models/LogEvent.php
@@ -239,7 +239,7 @@ class LogEvent extends SimpleORMap implements PrivacyObject
             return $this->$field;
         }
 
-        return '<em>' . $study_area->getPath(' &gt ') . '</em>';
+        return '<em>' . htmlReady($study_area->getPath(' > ')) . '</em>';
     }
 
     /**
@@ -264,8 +264,7 @@ class LogEvent extends SimpleORMap implements PrivacyObject
         $plugin_manager = PluginManager::getInstance();
         $plugin_info = $plugin_manager->getPluginInfoById($this->$field);
 
-        return $plugin_info ? '<em>'
-                . $plugin_info['name'] . '</em>' : $this->$field;
+        return $plugin_info ? '<em>' . htmlReady($plugin_info['name']) . '</em>' : $this->$field;
     }
 
     /**
@@ -279,10 +278,10 @@ class LogEvent extends SimpleORMap implements PrivacyObject
         $all_semester = Semester::findAllVisible(false);
         foreach ($all_semester as $val) {
             if ($val['beginn'] == $this->$field) {
-                return '<em>' . $val['name'] . '</em>';
+                return '<em>' . htmlReady($val['name']) . '</em>';
             }
         }
-        return $this->$field;
+        return htmlReady($this->$field);
     }
 
     /**