mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Use UTF-8 encoding for htmlspecialchars. See #36.
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.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
AT&T has an ampersand in their name
|
||||
|
||||
Let's play some cards ♠ ♣ ♥ ♦
|
||||
|
||||
AT&T is another way to write it
|
||||
|
||||
this & that
|
||||
|
Reference in New Issue
Block a user