htmLawed is a PHP script that makes input text more secure, HTML standards-compliant, and suitable in general from the viewpoint of a Web-page administrator, for use in the body of HTML 4 or XHTML 1 or 1.1 documents. It is a customizable HTML/XHTML filter, processor, purifier, and sanitizer. It can ensure that HTML tags are balanced and properly nested tags, neutralize code that may be used for cross-site scripting (XSS) attacks, and limit the allowed HTML elements, tags, attributes, or URL protocols.
| Tags | Internet Web Dynamic Content CGI Tools/Libraries Security Software Development Libraries php classes Text Processing Filters Markup HTML/XHTML |
|---|---|
| Licenses | LGPLv3 |
| Operating Systems | OS Independent |
| Implementation | PHP |
Recent releases


Release Notes: This release has a fix for a bug in the tidy functionality that caused the entire input to be replaced with a single space. There is a new parameter, $config["direct_list_nest"], to allow direct descendance of a list in a list.


Release Notes: This release fixes a nesting rule for the 'li' element within the 'dir' element.


Release Notes: The "schemes" parameter now accepts "!" so any URL, even a local one, can be denied. An issue in which a second URL value in CSS properties in "style" values was not checked was fixed. Documentation was improved.


Release Notes: An improved check for nesting of the 'param' element.


Release Notes: A minor fix regarding rendering of denied URL schemes.
A .NET component for the generation and recognition of Linear and 2D barcodes.