I have a dynamic textbox that is reading external data, and it is thrown off by certain characters. Since its a front end for a chat, anything could be written and displayed.
The problem is, the opening "<" throws everything past that off, unless it is the start of a tag, and also has a closing tag. The "&" also throws everything after that off. Because of the &, I can't just do an HTML encode on the text (to solve the "<" problem).
Any suggestions here? What I am thinking is just replacing all "<" with "[", all ">" with "]", and all "&" with "+". That is the only thing I can come up with.
Yeah, I am connecting to a server side script. The script reads the variables past to it, then outputs the appropriate data. I will try to do a URL-Encode rather than HTML-Encode and see how that works.