mirror of
https://github.com/elk-zone/elk.git
synced 2025-05-06 23:35:08 +03:00
fix: prevent HTML injections to code blocks (#1165)
This commit is contained in:
parent
1a4fd19720
commit
c15df78cbb
5 changed files with 88 additions and 25 deletions
components/content
|
@ -18,5 +18,6 @@ const highlighted = computed(() => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<pre class="code-block" v-html="highlighted" />
|
||||
<pre v-if="lang" class="code-block" v-html="highlighted" />
|
||||
<pre v-else class="code-block">{{ raw }}</pre>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue