PHPackages                             wittiws/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wittiws/htmlawed

Abandoned → [brainite/htmlawed](/?search=brainite%2Fhtmlawed)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wittiws/htmlawed
================

htmLawed - Adjusted to use static functions for autoloading

11831HTML

Since Mar 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stackpr/HTMLawed)[ Packagist](https://packagist.org/packages/wittiws/htmlawed)[ RSS](/packages/wittiws-htmlawed/feed)WikiDiscussions master Synced 3d 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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/50087543?v=4)[wittiws](/maintainers/wittiws)[@wittiws](https://github.com/wittiws)

### Embed Badge

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

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

###  Alternatives

[lionix/seo-manager

SEO Manager for Laravel Framework

2165.4k](/packages/lionix-seo-manager)

PHPackages © 2026

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