The Wayback Machine - https://web.archive.org/web/20201007071941/https://github.com/lcherone/php-format-html
Skip to content
master
Go to file
Code
This branch is 7 commits ahead of spyrosoft:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

HTML formatter class.

A simple to use HTML prettifier class written in PHP.

Example:

<?php
include_once('format.php');

$html = 'Unformatted HTML string';

// initialize class
$format = new Format();

// use spaces at 4 length
echo $format->html($html);

// use spaces at 2 length
echo $format->html($html, true, 2);

// use tabs
echo $format->html($html, false);

Static method example:

<?php
include_once('format.php');

$html = 'Unformatted HTML string';

// use spaces at 4 length
echo Format::HTML($html);

// use spaces at 2 length
echo Format::HTML($html, true, 2);

// use tabs
echo Format::HTML($html, false);

About

A simple to use HTML prettifier/formatter class written in PHP.

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.