mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
849a89b121
Prior to PHP 5.4.0 the default encoding for `htmlentities()` and `htmlspecialchars` is "ISO-8859-1". For PHP 5.4+ is "UTF-8". This ensures always the right encoding is used no matter the PHP version and the locale settings.
8 lines
430 B
HTML
8 lines
430 B
HTML
<p>AT&T has an ampersand in their name</p>
|
|
<pre><code>Let's play some cards ♠ ♣ ♥ ♦</code></pre>
|
|
<p>AT&T is another way to write it</p>
|
|
<p>this & that</p>
|
|
<p>4 < 5 and 6 > 5</p>
|
|
<p><a href="http://example.com/autolink?a=1&b=2">http://example.com/autolink?a=1&b=2</a> </p>
|
|
<p><a href="/script?a=1&b=2">inline link</a></p>
|
|
<p><a href="http://example.com/?a=1&b=2">reference link</a></p> |