|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-11 07:05 UTC] development at dayside dot net
Description:
------------
when any string contains any char of these -> äöüß
and the string is processed with htmlspecialchars it results in an empty string...
Test script:
---------------
<?php
echo htmlspecialchars('Test123 äöüß');
?>
Actual result:
--------------
nothin...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
try this, it worked for me: htmlspecialchars('Test123 äöüß', ENT_QUOTES | ENT_HTML401, ''); this is the important part --------------------------------^