I'm developing a blog using Angular. There I want to show HTML string retrieved from the database as plain text (for listing each blog post's preview). The HTML rich-text was generated using ngx-quill
.
I can able to render the rich text by using the code <quill-view [content]="post.content"></quill-view>
. But I need to render the same content as plain text.
How can I do this in an ngx-quill
/ Angular way. Please help!
I prefer not to go for fetching DOMElement.text()
method using JavaScript.