oscarotero/typofixer

Html microtypography fixer

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

This package is auto-updated.

Last update: 2024-11-17 00:09:24 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