Helper-classes/functions for creating well-formed arbitrary HTML or XML.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
dom
README.md

README.md

php-dom

Contents:

  • DOM modeling classes.
  • Includes a "tag-builder" helper class.

Examples:

require_once('dom/bootstrap.php');
...

$html = Tag(
   "To return home, click ",
   Tag::a('here')->href('/home/index.php'),
   "."
);

echo Tag::p($html); //<p>To return home, click <a href="/home/index.php">here</a>.</p>

License

http://eib.mit-license.org/