mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-26 08:38:58 -04:00
Fix autocomplete value preview showing rendered HTML
This commit is contained in:
1 parent
f34a72f569
commit
f48a6469aa
1 file changed
+5
-6
@@ -414,15 +414,14 @@ function renderHintMatch(li, self, data) {
|
||||
const markedName = replaceWithSurround(displayText, segment, '<strong>', '</strong>');
|
||||
|
||||
const { char, title } = ICONS[data.type];
|
||||
const safeValue = escapeHTML(data.displayValue);
|
||||
|
||||
let html = `
|
||||
li.className += ` fancy-hint type--${data.type}`;
|
||||
li.innerHTML = `
|
||||
<label class="label" title="${title}">${char}</label>
|
||||
<div class="name">${markedName}</div>
|
||||
<div class="value" title=${data.displayValue}>
|
||||
${escapeHTML(data.displayValue || '')}
|
||||
<div class="value" title=${safeValue}>
|
||||
${safeValue}
|
||||
</div>
|
||||
`;
|
||||
|
||||
li.innerHTML = html;
|
||||
li.className += ` fancy-hint type--${data.type}`;
|
||||
}
|
||||
Reference in new issue
Block a user