PHPackages                             brainite/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. brainite/htmlawed

AbandonedArchivedLibrary

brainite/htmlawed
=================

htmLawed - Adjusted to use static functions for autoloading

1474↓33.3%1HTML

Since Feb 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/brainite/HTMLawed)[ Packagist](https://packagist.org/packages/brainite/htmlawed)[ RSS](/packages/brainite-htmlawed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

HTMLawed is ...
===============

[](#htmlawed-is-)

... a single-file, 45 kb 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, XHTML or XML documents. A simple HTMLTidy alternative, the htmLawed filter, processor, purifier, sanitizer, beautifier, etc., is highly customizable.

It ensures that HTML tags are balanced and properly nested tags, neutralizes code that may be used for cross-site scripting (XSS) attacks, limits allowed HTML elements, attributes, or URL protocols, tidies the code, and so forth.

As such is may serve as an alternative to [HTMLtidy](http://en.wikipedia.org/wiki/HTML_Tidy) in a sanitation context.

This repository is ...
======================

[](#this-repository-is-)

... a derivative, which closely tracks [the original](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/)

Links
=====

[](#links)

- The Original: [http://www.bioinformatics.org/phplabware/internal\_utilities/htmLawed/](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/)
- The SF site where the official Original Releases are available (no cvs/svn/... repository there, though, just releases):
- HTMLawed against RSnake's XSS attack vectors: [http://www.bioinformatics.org/phplabware/internal\_utilities/htmLawed/rsnake/RSnakeXSSTest.htm](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/rsnake/RSnakeXSSTest.htm)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/698360bb1ccdcc99d8c774c5d9a49c58a8a40cde173c42c61c9d41b880fca8da?d=identicon)[brainite](/maintainers/brainite)

---

Top Contributors

[![stackpr](https://avatars.githubusercontent.com/u/1994413?v=4)](https://github.com/stackpr "stackpr (4 commits)")[![kesar](https://avatars.githubusercontent.com/u/1288106?v=4)](https://github.com/kesar "kesar (2 commits)")[![matgargano](https://avatars.githubusercontent.com/u/197298?v=4)](https://github.com/matgargano "matgargano (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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