<Template>
{{variable}}
</template>
<script>
export default {
data(){
return {
variable: "<ul><li>Sample</li><li>text></li></ul>"
}
}
}
</script>
Expected result:
- Sample
- text
Actual Result:
<ul><li>Sample</li><li>text</li></ul>
I need to display the html page. Where html codes are stored in the variable. for example, I have given the simple code above. Now the problem is the page takes the variable as string while displaying.