Title |
Test
Find
Special Character Blocker
|
Expression |
[^<>/?&{};#]+ |
Description |
This expression stops the characters <>/?&{};# from a string of any length passing the regular expression validator in Visual Studio thereby stopping the HttpRequestValidationException (if client side validation and javascript is on) |
Matches |
any word | a | a number 4382 |
Non-Matches |
< | > | / | ? | & | # | { | } | ; |
Author |
Rating:
Not yet rated.
Paul Verhulpen
|
Source |
|
Your Rating |
|
Title: Special Character Blocker
Name: Rover
Date: 9/2/2011 12:02:26 PM
Comment:
This is the answer I am looking for to prevent HTML and JavaScript injection. Thank you very much for this one.