v-html — render HTML. v-text — render text.
v-html:
1<template>2 <div v-html="htmlContent"></div>3</template>45<script setup>6const htmlContent = "<strong>Bold text</strong>"7</script>
v-text:
1<template>2 <div v-text="textContent"></div>3 <!-- Equivalent to -->4 <div>{{ textContent }}</div>5</template>67<script setup>8const textContent = "Plain text"9</script>
Warning: