mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 04:55:21 +02:00
15 lines
375 B
Vue
15 lines
375 B
Vue
<template>
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
<div v-html="safeMarkup" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { sanitizeIngredientHTML } from "~/composables/recipes/use-recipe-ingredients";
|
|
|
|
interface Props {
|
|
markup: string;
|
|
}
|
|
const props = defineProps<Props>();
|
|
|
|
const safeMarkup = computed(() => sanitizeIngredientHTML(props.markup));
|
|
</script>
|