RDL中抑制了HTML样式

| 嗨,我处于僵局。我的问题是我想对RDL中填充的内容应用某些样式。
Ex: this is + <span style = \'color:RED\'>\" +  Sample + \"</span>\" + text.
当我启用html属性以放置占位符时,它工作正常。 但是在这里,我的问题是我的内容具有一些用户定义的标签,例如
<hi> this is sample text.
。在这种情况下,我得到的是
this is sample text.
,因为coz被视为html标签并被抑制了。 那么我该如何处理两种情景呢?还有其他办法吗? 提前致谢     
已邀请:
在向其添加样式之前,您需要对字符串进行html编码。
 &lt;hi&gt; this is + <span style = \'color:RED\'>\" +  Sample + \"</span>\" + text.
    

要回复问题请先登录注册