The htmLawed PHP script makes HTML more secure and standards- & policy-compliant. The customizable HTML filter/purifier can balance tags, ensure proper nestings, neutralize XSS, restrict HTML, beautify code like Tidy, implement anti-spam measures, etc.
Features
- make HTML markup in text secure and standard-compliant
- process text for use in HTML, XHTML or XML documents; HTML5 support
- restrict HTML elements, attributes or URL protocols using black- or white-lists
- balance tags, check element nesting, transform deprecated attributes and tags, make relative URLs absolute, etc.
- fast, highly customizable, well-documented
- single, 55 kb file
- simple HTML Tidy alternative
- free and licensed under LGPL v3 and GPL v2+
- use to filter, secure & sanitize HTML in blog comments or forum posts, generate XML-compatible feed items from web-page excerpts, convert HTML to XHTML, pretty-print HTML, scrape web-pages, reduce spam, remove XSS code, etc.
- version with HTML5 support (check htmLawed website)
License
GNU General Public License version 2.0 (GPLv2), GNU General Public License version 3.0 (GPLv3), GNU Library or Lesser General Public License version 3.0 (LGPLv3)Follow htmLawed
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
-
Very good software. Can I add my own website? www.softwaredownload.mobi