Wednesday, 4 May 2016

Escape text for HTML - Embed Symbols in HTML

ASP.NET 
    var encoded = System.Web.HttpUtility.HtmlEncode(un_encoded);

C# console and Windows apps 
    var encoded = System.Security.SecurityElement.Escape(un_encoded);


No comments:

Analysis Service in Power BI Report Server

 We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link