I have some data in my MySQL with HTML code.
Example:
<b>William Shakespeare</b> was an English poet.
I need to insert this text into a Vue.js Component.
My code is:
mounted() {
axios
.get(MY API)
.then(response => (this.author = response.data))
.catch(error => error("error"));
}
And then:
<p class="card-text">
{{author.description}}
</p>
The problem is the tags into the description aren't interpreted and it shows the HTML tags.