Displaying page
of
pages;
Items to
Title |
Test
Details
Disallow HTML code
|
Expression |
^[^<^>]*$
|
Description |
I use this one as a simple way to disallow HTML code in form fields. It simply doesn't allow the use of the < and > characters. It does, however, allow the entities for these characters (&lt; and &gt;), which will print the characters to the screen appropriately, if needed. I'm sure there are more complex expressions to block HTML, but none more concise.
|
Matches |
hello world, &lt;b&gt;Hello World</b>
|
Non-Matches |
<b>Hello World</b>
|
Author |
Rating:
Not yet rated.
Doug Gainey
|
Displaying page
of
pages;
Items to