PHPackages                             htmlawed-git/htmlawed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. htmlawed-git/htmlawed

Abandoned → [htmlawed/htmlawed](/?search=htmlawed%2Fhtmlawed)Library[Validation &amp; Sanitization](/categories/validation)

htmlawed-git/htmlawed
=====================

htmLawed - Process text with HTML markup to make it more compliant with HTML standards and administrative policies

1.2.beta.7(11y ago)024LGPL-3.0HTMLPHP &gt;4.4.0

Since Apr 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hakre/HTMLawed)[ Packagist](https://packagist.org/packages/htmlawed-git/htmlawed)[ Docs](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/)[ RSS](/packages/htmlawed-git-htmlawed/feed)WikiDiscussions stable-fixes Synced 1mo ago

READMEChangelogDependenciesVersions (28)Used By (0)

htmLawed
========

[](#htmlawed)

PHP code to purify &amp; filter HTML

- make HTML markup in text secure and standard-compliant
- process text for use in HTML, XHTML or XML documents
- 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, 48 kb file
- simple HTML Tidy alternative
- free and licensed under LGPL v3 and GPL v2+
- use to filter, secure &amp; 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.

Read more on the [official *htmLawed* homepage](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/).

Why a fork?
-----------

[](#why-a-fork)

This git repository tracks changes from the upstream project to allow installation via composer and packagist because the original project doesn't offer compatible and publicly available version control.

The tracking works highly automated. Timestamps are backported for each release, and releases are tagged according to their original versions. This might produce problems for some versions with packagist. We'll see.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

22

Last Release

4061d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/378849?v=4)[hakre](/maintainers/hakre)[@hakre](https://github.com/hakre)

---

Top Contributors

[![hakre](https://avatars.githubusercontent.com/u/378849?v=4)](https://github.com/hakre "hakre (4 commits)")[![brandonburkett](https://avatars.githubusercontent.com/u/1877193?v=4)](https://github.com/brandonburkett "brandonburkett (1 commits)")

---

Tags

htmltagsHTMLtidysanitizestrip

### Embed Badge

![Health badge](/badges/htmlawed-git-htmlawed/health.svg)

```
[![Health](https://phpackages.com/badges/htmlawed-git-htmlawed/health.svg)](https://phpackages.com/packages/htmlawed-git-htmlawed)
```

###  Alternatives

[ezyang/htmlpurifier

Standards compliant HTML filter written in PHP

3.3k327.6M445](/packages/ezyang-htmlpurifier)[symfony/html-sanitizer

Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

27932.2M63](/packages/symfony-html-sanitizer)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)[abcaeffchen/sepa-utilities

SepaUtilities provides useful methods for validating and sanitizing inputs used in SEPA files supporting PHP &gt;= 8.1.

312.0M2](/packages/abcaeffchen-sepa-utilities)[form-manager/form-manager

PHP-HTML form manager

16041.0k7](/packages/form-manager-form-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
