I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings?
I have email addresses encoded with HTML character entities. Is there anything in .NET
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
HttpUtility.HtmlDecode.If you are using .NET 4.0+ you can also use
WebUtility.HtmlDecodewhich does not require an extra assembly reference as it is available in theSystem.Netnamespace.