Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
RDL中抑制的HTML样式_Html_Reporting Services_Styles_Rdl - Fatal编程技术网

RDL中抑制的HTML样式

RDL中抑制的HTML样式,html,reporting-services,styles,rdl,Html,Reporting Services,Styles,Rdl,嗨,我陷入了僵局。我的问题是我想对RDL中填充的内容应用一些样式 Ex: this is + <span style = 'color:RED'>" + Sample + "</span>" + text. Ex:这是+“+示例+”+文本。 当我将html属性启用为PlaceHolder时,它工作得很好 但这里我的问题是我的内容有一些用户定义的标记,比如这是示例文本。在这种情况下,我得到的是这是示例文本。coz被视为html标记并被抑制 那我怎么处理这两种情况呢?还

嗨,我陷入了僵局。我的问题是我想对RDL中填充的内容应用一些样式

Ex: this is + <span style = 'color:RED'>" +  Sample + "</span>" + text.
Ex:这是+“+示例+”+文本。
当我将html属性启用为PlaceHolder时,它工作得很好

但这里我的问题是我的内容有一些用户定义的标记,比如
这是示例文本。
在这种情况下,我得到的是
这是示例文本。
coz被视为html标记并被抑制

那我怎么处理这两种情况呢?还有别的办法吗


提前感谢

在添加样式之前,您需要对字符串进行html编码

 &lt;hi&gt; this is + <span style = 'color:RED'>" +  Sample + "</span>" + text.
hi这是+示例+文本。

事实恰恰相反,您必须对其进行html解码,因为报表只支持未编码的html标记<代码>测试