Commit ea6a5c0a authored by Savas Vedova's avatar Savas Vedova

Merge branch '241920-replace-v-html' into 'master'

Replaces v-html with v-safe-html in stacktrace_entry.vue

See merge request gitlab-org/gitlab!73371
parents e177daa9 7448898e
<script>
import { GlTooltip, GlSprintf, GlIcon } from '@gitlab/ui';
import { GlTooltip, GlSprintf, GlIcon, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import FileIcon from '~/vue_shared/components/file_icon.vue';
......@@ -12,6 +12,7 @@ export default {
},
directives: {
GlTooltip,
SafeHtml,
},
props: {
lines: {
......@@ -129,9 +130,9 @@ export default {
{{ lineNum(line) }}
</td>
<td
v-safe-html="lineCode(line)"
class="line_content"
:class="{ old: isHighlighted(lineNum(line)) }"
v-html="lineCode(line) /* eslint-disable-line vue/no-v-html */"
></td>
</tr>
</template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment