I need to find a way to implement encoding.
Since HTML Encoding is not working, hence I am using:
using System.Web.Security.AntiXss;
and then:
AntiXssEncoder.UrlEncode(**Iam passing string here**)
This measure resolves my issue(Positive results in HP Fortify), however I am concerned since instead of URL I am using string. Would this result into any impediments?
and then:
or to accept HTML tags that put text in bold or italics; check content manually.