I am inserting data from QUILL text editor, which is stored in HTML format. When I access the data to show somewhere it is showing same as HTML, I need that to show as normal text.
<div class="card p-3 mb-3" [innerHTML]="mcq.question ">
JSON from DB:
0:
answer: "<p>mcq-1 A</p>"
question: "<p>mcq-1\tQ</p>"

This function will do the work:
So you can use it like:
Because you want HTML to behave like text. So basically it is a text that is look like a html. so bind it with
innerText.TypeScript
The typescript-friendly function will be:
and use it in template like: