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. |