Escape entry name in path bar

pull/113/head
Thibaut 11 years ago
parent 636fc8cfd3
commit b33b17bedb

@ -1,5 +1,5 @@
app.templates.path = (doc, type, entry) ->
html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""
html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
html += """<span class="_path-item">#{entry.name}</span>""" if entry
html += """<span class="_path-item">#{$.escape entry.name}</span>""" if entry
html

Loading…
Cancel
Save