Day: January 12, 2011

  • My favorite extension methods: HtmlEncode shortcut

    This is the second installment in my series highlighting my personal favorite .NET extension methods.  We’ve already talked about a String.Format shortcut.  Now we’re on to making the HtmlEncode function readily accessible. Any time you are showing user-entered content as text on a web page, it is important to HtmlEncode the string so as to […]