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.
<hi> this is + <span style = 'color:RED'>" + Sample + "</span>" + text.
精彩评论