Blazor中如何呈现富文本/HTML

将需要显示字符串转换成MarkupString类型

@((MarkupString)htmlString)

参考文献

https://stackoverflow.com/questions/60167219/convert-plain-text-with-html-tags-to-html-string-and-render-it-in-blazor

posted @ 2022-09-18 11:48  Yu-Core  阅读(323)  评论(0编辑  收藏  举报