SSRS how to render HTML escaped character

I am trying to display a column with a lot of HTML escaped characters like & # 0945 for alpha, & # 0946 for beta. I am using the SSRS 2012 placeholder property to display it as an HTML markup type. This function only works with HMTL tags, not escaped characters. Any feedback is appreciated.

+6
source share
1 answer

Right-click on the custom surface of your report and click Report Properties... Click the References button, click Add in Add or remove assemblies and add System.Web from the .NET options.

Select the Code option and add the following code:

 Function Decode(ByVal EncodedString AS String) AS String Return System.Web.HttpUtility.HTMLDecode(EncodedString) End Function 

For your field value, use the expression:

 =Code.Decode(Fields!MyField.Value) 
+7
source

Source: https://habr.com/ru/post/945901/


All Articles