Commit 81a7124c authored by Mehul Sharma's avatar Mehul Sharma Committed by Brandon Labuschagne

Replaces v-html with v-safe-html

parent 4b02747c
......@@ -2,7 +2,6 @@
import { GlTable, GlLink, GlIcon, GlAvatarLink, GlAvatar, GlTooltipDirective } from '@gitlab/ui';
import { escape } from 'lodash';
import { mapState } from 'vuex';
import { sanitize } from '~/lib/dompurify';
import { getTimeago } from '~/lib/utils/datetime_utility';
import { __, sprintf, n__ } from '~/locale';
import ApproversColumn from './approvers_column.vue';
......@@ -40,7 +39,7 @@ export default {
return n__('1 hour', '%d hours', hours);
}
return sanitize(__('< 1 hour'), { ALLOWED_TAGS: [] });
return sprintf(__('%{lessThan} 1 hour'), { lessThan: '<' }, false);
},
},
tableHeaderFields: [
......@@ -118,7 +117,7 @@ export default {
<template #cell(review_time)="{ value }">
<template v-if="showReviewTime(value)">
<span v-html="formatReviewTime(value) /* eslint-disable-line vue/no-v-html */"></span>
<span v-text="formatReviewTime(value)"></span>
</template>
<template v-else> &ndash; </template>
</template>
......
......@@ -694,6 +694,9 @@ msgstr ""
msgid "%{label_for_message} unavailable"
msgstr ""
msgid "%{lessThan} 1 hour"
msgstr ""
msgid "%{lets_encrypt_link_start}Let's Encrypt%{lets_encrypt_link_end} is a free, automated, and open certificate authority (CA) that issues digital certificates to enable HTTPS (SSL/TLS) for sites."
msgstr ""
......@@ -1054,9 +1057,6 @@ msgstr ""
msgid "%{wildcards_link_start}Wildcards%{wildcards_link_end} such as %{code_tag_start}v*%{code_tag_end} or %{code_tag_start}*-release%{code_tag_end} are supported."
msgstr ""
msgid "&lt; 1 hour"
msgstr ""
msgid "'%{data}' at %{location} does not match format: %{format}"
msgstr ""
......
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