GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lcherone/php-format-html: A simple to use HTML prettifier/formatter class written in PHP.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
format.php
format.php
 
 

Repository files navigation

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

htmlhtml-formatphpprettifier

Resources

Readme
Activity

Stars

1 star

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.