Skip to content

Commit fa9077f

Browse files
committed
Escape the description
This prevents html elements that should show up as code from being inserted into the DOM.
1 parent 299dc6b commit fa9077f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/templates/search-results.stache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
{{#if result.title}}
2424
<span class="name">
2525
({{result.name}})
26-
</span>
26+
</span>
2727
{{/if}}
2828

2929
{{#if result.description}}
3030
<div class="result-description" title="{{result.description}}">
31-
{{{result.description}}}
31+
{{result.description}}
3232
</div>
3333
{{/if}}
3434
</li>

0 commit comments

Comments
 (0)