<template>
<div>
<div v-for="item in items" :key="item.id" v-html="item.content"></div>
</div>
</template>
<script>
export default {
data() {
return {
items: [
{ id: 1, content: '<span style="color:red">Item 1</strong>' },
{ id: 2, content: '<span style="color:red">Item 2</strong>' },
//....
]
};
}
};
</script>