mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix escaping of doc types in the sidebar
This commit is contained in:
parent
61930288b8
commit
fbf0c58719
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ templates.sidebarDoc = (doc, options = {}) ->
|
|||
link + "</span></a>"
|
||||
|
||||
templates.sidebarType = (type) ->
|
||||
"""<a href="#{type.fullPath()}" class="_list-item _list-dir" data-slug="#{type.slug}" tabindex="-1"><span class="_list-arrow"></span><span class="_list-count">#{type.count}</span><span class="_list-text">#{type.name}</span></a>"""
|
||||
"""<a href="#{type.fullPath()}" class="_list-item _list-dir" data-slug="#{type.slug}" tabindex="-1"><span class="_list-arrow"></span><span class="_list-count">#{type.count}</span><span class="_list-text">#{$.escape type.name}</span></a>"""
|
||||
|
||||
templates.sidebarEntry = (entry) ->
|
||||
"""<a href="#{entry.fullPath()}" class="_list-item _list-hover" tabindex="-1">#{$.escape entry.name}</a>"""
|
||||
|
|
Loading…
Reference in a new issue