Open
Description
Description
The following code:
<?php
$txt = 'acme & co';
echo mb_convert_case($txt, MB_CASE_TITLE, 'UTF-8'), PHP_EOL;
Resulted in this output:
Acme &Amp; Co
But I expected this output instead:
Acme & Co
Using uc_words
produces the expected result:
<?php
$txt = 'acme & co';
echo ucwords($txt), PHP_EOL;
results in
Acme & Co
PHP Version
PHP 8.4.5, PHP 8.2.26
Operating System
No response