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

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

devourment77/htmlawed
=====================

htmLawed - Customized to allow the allowfullscreen attribute on iframes.

1.1.17(12y ago)0291GPL-2.0+PHPPHP &gt;4.4.0

Since May 6Pushed 12y ago1 watchersCompare

[ Source](https://github.com/devourment77/HTMLawed)[ Packagist](https://packagist.org/packages/devourment77/htmlawed)[ Docs](http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/)[ RSS](/packages/devourment77-htmlawed/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

4396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fbecaf21c068b94daed3265696961c184634d0335be72218b3b565efacb5102?d=identicon)[devourment77](/maintainers/devourment77)

---

Top Contributors

[![brandonburkett](https://avatars.githubusercontent.com/u/1877193?v=4)](https://github.com/brandonburkett "brandonburkett (3 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)")

---

Tags

htmltagsHTMLtidysanitizestrip

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/devourment77-htmlawed/health.svg)](https://phpackages.com/packages/devourment77-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)
