开发者

HTML Styles suppressed in RDL

开发者 https://www.devze.com 2023-03-08 16:45 出处:网络
Hi I\'m in a deadlock situation. My problem is I want to apply some styles to content which is populated in RDL.

Hi I'm in a deadlock situation. My problem is I want to apply some styles to content which is populated in RDL.

Ex: this is + <span style = 'color:RED'>" +  Sample + "</span>" + text.

and it is working fine when I enable html properties to place holder.

but here my problem is my content having some user defined tags like <hi> this i开发者_Python百科s sample text. In this case I'm getting this is sample text. coz is treating as html tag and getting suppressed.

So how can I handle both situtaions? Is there any other way?

Thanks in advance


You need to html encode you string before you add styles to it.

 &lt;hi&gt; this is + <span style = 'color:RED'>" +  Sample + "</span>" + text.
0

精彩评论

暂无评论...
验证码 换一张
取 消