It doesn’t appear that the strings are being encoded.
Issue:
Dim encodedStr As String = HttpUtility.HtmlEncode("<p>This is a test</p>")
The output produces:
<p>This is a test</p>
Expected result:
<p>This is a test</p>
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.
I’d double check to make sure whatever is displaying the value is indeed displaying it in text mode, and not HTML. Under the debugger, it works fine:
(Yes, this is C# but the .NET framework code is all shared and I was lazy)