mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			375 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			16 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>
 |