$string = "Główny folder grafik<p>asd nc</p>";
echo htmlspecialchars($string);
on live site
Główny folder grafik<p>asd nc</p>
on local
Główny folder grafik<p>asd nc</p>
what is problem ? i want when run on live site result look like local
htmlspecialchars() accepts additional parameters -- the third one being the charset.
Try specifying that third parameter.
You need to add extra parameters to the htmlspecialchars() function. The following should work:
htmlspecialchars($string, ENT_QUOTES, "UTF-8");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With