如何将 ngx-quill 富文本编辑器数据从数据库显示到页面以进行查看模式

How can I dispaly ngx-quill rich text editor data from database to a page for view mode

我有 angular 项目,我使用过 ngx-quill 富文本编辑器,它在添加新记录或编辑记录时效果很好,并将结果存储在数据库中。 现在我想将富文本的结果显示到它显示的组件中,如下所示:

<p>And this is some text<strong> this is another text</strong></p>

这行代码将为您完成:)

<div [innerHTML]="yourContent"></div>

更多信息:https://angular.io/guide/template-syntax#!#other-bindings