I have a GridView bound to an ObjectDataSource. I\'ve got it supporting editing as well, which works just fine. However, I\'d like to safely HtmlEncode text that is displa
What about a simple extension method?
public static string HtmlEncode(this string s) { s = HttpUtility.HtmlEncode(s); return s; }
You could then simply run:
/>