Blazor中如何呈现富文本/HTML

[删除(380066935@qq.com或微信通知)]

更好的阅读体验请查看原文:https://www.cnblogs.com/Yu-Core/p/16704549.html

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

@((MarkupString)htmlString)

参考文献

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