By NeilO
Rate: (22 Ratings)
A common and helpful aspect of Regular Expressions is filtering out bad data on the server-side of a web application. In many cases you want to do this versus a hard-failure, because users are copy&pasting, not necessarily trying to hack you intentionally. Well, here's some steps you can follow to remove non-approved HTML tags from a string.