mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Sanitize all user inputted md
This commit is contained in:
@@ -31,13 +31,13 @@
|
||||
|
||||
<v-divider />
|
||||
|
||||
<div class="page-description" v-html="marked($t('page_help_users_item'))" />
|
||||
<div class="page-description" v-html="md($t('page_help_users_item'))" />
|
||||
</sidebar-detail>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref, watch } from '@vue/composition-api';
|
||||
import marked from 'marked';
|
||||
import { md } from '@/utils/md';
|
||||
import localizedFormat from '@/utils/localized-format';
|
||||
import i18n from '@/lang';
|
||||
|
||||
@@ -67,7 +67,7 @@ export default defineComponent({
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
return { marked, lastAccessDate };
|
||||
return { md, lastAccessDate };
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user