HTML code to string
-
Is there a simple function which will convert a HTML string (including parts such as metachachters into a plain string. Basically stripping tags and replacing metacharachters with their true visual value? Does this exist in the .Net Framework, or will I hav to build it myself? Thanks in advance.
-
Is there a simple function which will convert a HTML string (including parts such as metachachters into a plain string. Basically stripping tags and replacing metacharachters with their true visual value? Does this exist in the .Net Framework, or will I hav to build it myself? Thanks in advance.
-
You can use the System.Web.HttpUtility.HtmlDecode method to convert html entities to characters. You can use a regular expression to match the tags to remove them.
Despite everything, the person most likely to be fooling you next is yourself.
Thanks for that!