I know the < and > characters will cause this error, but what other characters/inputs will cause this error?
I'm testing for this error in the Global.asax, and reridrecting to an error page where I want to list all possible values which cause this error, so the user can go back to their page and get rid of them.
I've done some googling, but all I see so far are the < and > characters...surely there are more out there.
Here is the actual complete list of inputs that will cause the error:
<(any a-z character)
<!
</
<?
&#
Note that an angle bracket on it own '<' will not cause an exception.
There is a similar question that has a more complete answer including some code, which is where I derived the list from.
Of course you could always look here for the rest of it if you are concerned.
No, < is not the only character combination that will cause it. &# will cause it as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With