More info available on: http://pear.php.net/package/HTML_Common2
The package contains an abstract
HTML_Common2 class that implements methods for HTML attributes handling and
setting document-wide options. It is quite helpful as a building block for packages generating HTML and is currently
used as such by PEAR HTML_QuickForm2 package. The package is a PHP5 rewrite of PEAR HTML_Common.
- Allows easy setting, removing, merging of HTML attributes, working with CSS classes;
- Provides means to parse and generate HTML attribute strings;
- Global document options: charset, linebreak and indentation characters;
- Methods to handle indentation and HTML comments (useful in subclasses).
Please report all issues via the PEAR bug tracker.
Pull requests are welcome.
To test, run either
$ phpunit tests/
$ pear run-tests -r
To build, simply
$ pear package
To install from scratch
$ pear install package.xml
$ pear upgrade -f package.xml