0👍
You could try using the DOMParser
.
const doc = new DOMParser().parseFromString("<li>", "text/html");
const textContent = doc.documentElement.textContent;
console.log(textContent);
After running it through here you can then pass the results to v-html
.
- [Vuejs]-VueJS (Nuxt) error, when install new SSL certificate
- [Vuejs]-Vue-chart.js : Getting partial data; chart not displaying well
Source:stackexchange.com