diff --git a/assets/javascripts/templates/path_tmpl.coffee b/assets/javascripts/templates/path_tmpl.coffee
index 68ec3d25..43996ee0 100644
--- a/assets/javascripts/templates/path_tmpl.coffee
+++ b/assets/javascripts/templates/path_tmpl.coffee
@@ -1,5 +1,5 @@
app.templates.path = (doc, type, entry) ->
html = """#{doc.name}"""
html += """#{type.name}""" if type
- html += """#{entry.name}""" if entry
+ html += """#{$.escape entry.name}""" if entry
html