This class can be used to remove unsafe tags and attributes from HTML code.
It takes a string with HTML code and strips all the tags that do not make part of a list of safe tags. That list of safe tags is defined as a private class variable. There are some functions to allow usually unsafe tags like script, style, object, embed, etc..
The class can also remove unsafe tag attributes, such as those that define Javascript code to handle events.
The links href attributes also gets special treatment to remove URLs that trigger Javascript code execution and line breaks.
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (85.0%) |
Good (85.0%) |
- |
Sufficient (65.0%) |
- |
- |
Not sure (57.5%) |
985 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|