oscarotero/typofixer

Html microtypography fixer

v0.1.1 2021-12-16 18:08 UTC

This package is auto-updated.

Last update: 2024-09-16 23:46:29 UTC


README

A [wip] PHP library to fix microtypography issues in html code.

Requirements

  • PHP ^7.1
  • mbstring extension

Usage

use Typofixer\Typofixer;

$input = '<p>"Hello"&nbsp;&nbsp;world...</p>';
$output = Typofixer::fix($input, ['language' => 'es']);

echo $ouput; //<p>«Hello» world…</p>

Available fixers:

Available options