[Vuejs]-Rendering escaped HTML from api call with vue.js

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.

Leave a comment