Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
Demos | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (1) | Blog (1) | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() ![]() ![]() | Total: 1,910 | All time: 2,057 This week: 164![]() |
Version | License | PHP version | Categories | |||
secure-html-filter 1.0.0 | BSD License | 4 | HTML, Security, Parsers |
Description | Author | ||||||||
This package can be used to parse and filter insecure HTML tags and CSS styles. |
|
Screenshots | ||
![]() |
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 |
![]() |
/ | documentation |
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 |
![]() |
/ | test |
![]() |
/ | test | / | expect |
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 |
![]() |
/ | test | / | generated |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Dummy file to force the distribution of this directory |
![]() |
/ | test | / | sample |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | HTML document used in the example scripts |
![]() ![]() |
Data | Definitions for the XSS attack vectors from ha.ckers.org |
![]() | secure-html-filter-2010-10-07.zip 122KB |
![]() | secure-html-filter-2010-10-07.tar.gz |
![]() | Install with Composer |
Needed packages | ||
Class | Download | Why it is needed | Dependency |
---|---|---|---|
PHP Forms Class with HTML Generator and JavaScript Validation | ![]() |
Used in the secure_html_filter.php Web interface test script | Conditional |
Generic XML parser class | ![]() |
It is neeeded to parse the xssAttacks.xml file with tested XSS attack vectors definitions | Conditional |
File cache class | ![]() |
It is necessary to manage parsed DTD cache files | Conditional |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
0% | 1 |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
PHP Markdown Parser | Convert parsed Markdown tags to HTML | Conditional |
Pages that reference this package |
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... |