rtf(富文本格式)base64数据显示在角度6 html上

时间:2019-02-02 09:41:07

标签: html angular angular6 embed rtf

我有RTF文件base64代码,我想在HTML中显示它。 我的ts角文件具有以下代码

  this.display= 
 this._sanitizer.bypassSecurityTrustResourceUrl('data:application/rtf;base64,' 
 +'mybase64code')

和我的html

<object [data]="display"></object>

在运行显示“不支持此插件”的应用程序时。请帮助我,这种方法有什么问题。

0 个答案:

没有答案