3 ms·
`htmlentities()` defaults to ISO-8859-1 encoding, so the short form is useless in practice, and you need: <?= htmlentities($name, ENT_QUOTES, 'UTF-8'); ?>
by pornel 16y ago
`htmlentities()` defaults to ISO-8859-1 encoding, so the short form is useless in practice, and you need:
<?= htmlentities($name, ENT_QUOTES, 'UTF-8'); ?>