ASP.NET/.NET: Method to determine whether string is or contains HTML entity
- by ChrisIsTheBomb
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?