Skip to content

Commit e76c1ff

Browse files
committed
Sanitize content
1 parent 2f2bc1b commit e76c1ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/components/Dataset/DatasetDisplay.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ watch(
9393
<div>This dataset is large and only the first {{ bytesToString(truncated) }} is shown below.</div>
9494
<a :href="downloadUrl">Download</a>
9595
</div>
96-
<pre>{{ content }}</pre>
96+
<pre v-if="sanitizedMessage || sanitizedToolId">{{ content }}</pre>
97+
<pre v-else v-html="content" />
9798
</div>
9899
</div>
99100
</template>

0 commit comments

Comments
 (0)