| Recommend this page to a friend! |
| Author | ||
![]() |
|
|||||||||||||||||||
| Classes of Manuel Lemos | > | Secure HTML parser and filter | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Freshmeat project | |||||||
| Dependencies | Trackback | Applications | Related links | |||||||
| Groups | ||
| HTML | HTML generation and processing | View top rated classes | |
| Security | Security protection and attack detection | View top rated classes | |
| Parsers | Programming language interpreters and format parsers | View top rated classes |
![]() |
|
| Freshmeat project | ||
|
| User ratings | ||
| There are not enough user ratings to display for this class. |
| Packages needed by this class | ||
| Class | Dependency | Why it is needed |
|---|---|---|
| Forms generation and validation | Used in the secure_html_filter.php Web interface test script | |
| Generic XML parser class | It is neeeded to parse the xssAttacks.xml file with tested XSS attack vectors definitions | |
| File cache class | It is necessary to manage parsed DTD cache files |
| Trackback links | ||
| Link | Description |
|---|---|
| What are the best ways to prevent XSS attacks in PHP? | Now, if you really need to accept HTML formatted user input, like you need to let the user enter an HTML formatted text, you need a really powerful HTML parser that recognizes dangerous HTML or malformed tags that could be used to make JavaScript code execute when the HTML is displayed... |
| Applications that use this class | ||
| Related links | ||
| Link | Description |
|---|---|
| Demo | Try the HTML and CSS filter here |
| File | Role | Description | ||
|---|---|---|---|---|
| Example | Example script that demonstrates how to parse and filter and HTML document file | |||
| Class | Secure HTML filter class | |||
| Class | CSS stylesheet parser class | |||
| Class | DTD parser class | |||
| Class | HTML parser class to extract links from pages | |||
| Class | No follow HTML links filter class | |||
| Class | Filter class that validates HTML against a DTD | |||
| Class | Main markup parser class | |||
| Example | Script with forms to test the secure HTML filter classes | |||
| Example | CSS parser test script | |||
| Example | Example script that demonstrates how to extract links from HTML pages | |||
| Example | Example script that demonstrates how to parse any markup document into token elements | |||
| Test | Script that tests the results of the safe HTML filter class against the XSS attack vectors from ha.ckers.org | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Doc. | Documentation of the CSS parser class |
| |
Doc. | Documentation of the DTD parser class |
| |
Doc. | Documentation of the filter get HTML links class |
| |
Doc. | Documentation of the filter HTML safe class |
| |
Doc. | Documentation of the filter validator class |
| |
Doc. | Documentation of the main markup parser class |
| Files | / | |||
| Files | / | test | / | |||
| File | Role | Description |
|---|---|---|
| |
Data | Unit test expected results |
| |
Data | Entities in unsafe URL test parsing output |
| |
Data | Quotes separating unsafe attribute test parsing output |
| |
Data | Test expected output |
| |
Data | CSS selectors parsing output |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Unit test expected results |
| |
Data | Test expected output |
| Files | / | test | / | |||
| File | Role | Description |
|---|---|---|
| |
Data | Dummy file to force the distribution of this directory |
| Files | / | test | / | |||
| File | Role | Description |
|---|---|---|
| |
Data | HTML document used in the example scripts |
| |
Data | Definitions for the XSS attack vectors from ha.ckers.org |
| Download all files: secure-html-filter.tar.gz secure-html-filter.zip |