Skip to content
Simple HTML-aware typography for PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
README.markdown

README.markdown

HTML formatter for PHP

Basically what this does is it attempts to apply some typography to an HTML fragment. It will try to insert paragraphs, linebreaks, links, etc in sensible places and try not to insert them in wrong places (like messing with paragraphs in pre/code blocks).

Usage:

require_once 'src/HTMLFormatter.class.php';

$f = new HTMLFormatter();
echo $f->format($text);
You can’t perform that action at this time.