avoid sanitization for cheatsheet keys

This commit is contained in:
juliandescottes 2017-05-07 12:35:27 +02:00 committed by Julian Descottes
parent b8fed60fa6
commit f74b081fad
2 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,8 @@
title : title,
icon : descriptor.iconClass,
description : description,
key : this.formatKey_(shortcut.getDisplayKey()),
// Avoid sanitization
'!key!' : this.formatKey_(shortcut.getDisplayKey()),
className : shortcutClasses.join(' ')
});

View File

@ -43,7 +43,7 @@
<script type="text/template" id="cheatsheet-shortcut-template">
<li class="cheatsheet-shortcut {{className}}" data-shortcut-id="{{id}}">
<div class="cheatsheet-icon {{icon}}"></div>
<span class="cheatsheet-key" rel="tooltip" data-placement="top" title="{{title}}">{{key}}</span>
<span class="cheatsheet-key" rel="tooltip" data-placement="top" title="{{title}}">{{!key!}}</span>
<span class="cheatsheet-description">{{description}}</span>
</li>
</script>