mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04: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>
 |