oscarotero/

typofixer

HTML 微型排印修复器

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 库,用于修复 HTML 代码中的微型排印问题。

要求

  • PHP ^7.1
  • mbstring 扩展

用法

use Typofixer\Typofixer;

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

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

可用的修复器

可用的选项