Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A refactoring (to a class) of PHP Labware's fantastic htmLawed function library
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
original-src
samples
README.md
htmLawed.class.php
test-suite.php

README.md

Compatible with htmLawed as of 1.1.14

HtmlCleaner

htmLawed.class.php is in a functional state. htmlCleaner.class.php is not (as of 7/3/2012). Sample invocation code is in test-suite.php until a permanent method has been agreed upon.

A refactoring (to a class) of PHP Labware's fantastic htmLawed function library.

Why?

Because while htmLawed is a wonderful alternative to HTMLTidy, the source code itself is a bit difficult to read and understand. Variable name refactoring, structured whitespace, and conversion into a class file makes the project easier to understand and integrate.

What Else?

The goal of this is not to affect functionality of the htmLawed script, just code readability. Some functionality has been commented out of the class file because of requirements of our original goal for this, but that functionality still exists and should be in good working order. The only major things that are heavily commented are the master tag list (only certain tags are uncommented) and hl_tag2.

Last little bit

The original htmLawed is avaialble through Dual licensed with LGPL 3 and GPL 2 or later, and so is this.

See the htmLawed changelog for all the latest updates.

The original htmLawed is copyrighted by Santosh Patnaik, MD, PhD.

Something went wrong with that request. Please try again.