views:

40

answers:

1

Is there a method anywhere in the .NET framework or System.Web that will tell me whether a string contains an HTML or is one?

Should I just Server.HtmlEncode(myString) and see if its length is longer than myString's length before encoding?

A: 

Check this SO question out.

Bradley Mountford