diff --git a/resources/report/html/loot-plugin-item.html b/resources/report/html/loot-plugin-item.html
index 4fe905d3..7cf67521 100644
--- a/resources/report/html/loot-plugin-item.html
+++ b/resources/report/html/loot-plugin-item.html
@@ -53,7 +53,7 @@
},
getName: function() {
- return this.getElementsByTagName('a')[0].textContent;
+ return this.textContent.trim();
},
handleDragStart: function(evt) {