1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-04 04:55:21 +02:00
mealie/frontend/components/Domain/Recipe/RecipeIngredientHtml.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>