Try Texy!

Text formatted with Texy:

Texy! is sexy!

Texy is a powerful and secure markup language for PHP. It converts plain text into valid HTML and takes care of typography: “quotes”, dashes 10–20, multiplication 2 × 3…

  • bullet lists
  • italic, bold, code
  • link
$texy = new Texy\Texy;
echo $texy->toHtml($text);

Generated HTML code:

<h1 id="toc-texy-is-sexy">Texy! is sexy!</h1>

<p>Texy is a <strong>powerful and secure</strong> markup language for PHP. It
converts plain text into valid HTML and takes care of typography: “quotes”,
dashes 10&ndash;20, multiplication 2&nbsp;×&nbsp;3…</p>

<ul>
	<li>bullet lists</li>

	<li><em>italic</em>, <strong>bold</strong>, <code>code</code></li>

	<li><a href="https://texy.deegee.dev">link</a></li>
</ul>

<pre
class="language-php"><code>$texy = new Texy\Texy;
echo $texy-&gt;toHtml($text);</code></pre>

Texy 4.0.0 (configuration)