Skip to content

Commit

Permalink
Merge pull request #2886 from vincent99/release-2.5.8
Browse files Browse the repository at this point in the history
DetailText escape
  • Loading branch information
vincent99 authored May 3, 2021
2 parents 695c26d + c510331 commit 6ddcdbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/DetailText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default {
},
bodyHtml() {
// Includes escapeHtml()
return nlToBr(this.body);
},
Expand Down Expand Up @@ -155,7 +156,7 @@ export default {
:class="{'conceal': concealed}"
/>

<span v-else :class="{'conceal': concealed, 'monospace': monospace && !isBinary}" v-html="monospace ? body : bodyHtml" />
<span v-else :class="{'conceal': concealed, 'monospace': monospace && !isBinary}" v-html="bodyHtml" />

<template v-if="!isBinary && !jsonStr && isLong && !expanded">
<a href="#" @click.prevent="expand">{{ plusMore }}</a>
Expand Down

0 comments on commit 6ddcdbc

Please sign in to comment.