<br /> tag not being rendered correctly.
I'm building an application that outputs a list of usernames to an HTML document. I'm using this to generate a string:
Code:
For y As Int16 = 0 To intBuddyList - 1
strBuddyListHTML = strBuddyListHTML & strBuddyList(y) & "<br />"
Next
The resulting string is then put into an HTML document. The problem is, when I load the document, the brackets are displayed literally. When I view the source, I see this:
Code:
buddy1<br />buddy2<br />buddy3<br />buddy4<br />tbuddy5<br />tbuddy6<br />
Is there a way to preserve the brackets in the HTML tags?
Re: <br /> tag not being rendered correctly.
It's an educated guess but try this:
Code:
strBuddyListHTML = strBuddyListHTML & strBuddyList(y) & "<<br />>"