[eluser]Typeslowly[/eluser]
Hi,
Not strictly CI but always find this the best place to clear things up so thanks in advance for any insight.
I am trying to use htmlentities() to convert special characters.
This works as expected and outputs 'what and the html entity for &' which is great.
Code:
$test_string = 'what &';
$test_string = htmlentities( $test_string, ENT_QUOTES, 'UTF-8' );
echo '<p>hey: '.$test_string.'</p>';
This outputs nothing when I introduce £
Code:
$test_string = 'what & £';
$test_string = htmlentities( $test_string, ENT_QUOTES, 'UTF-8' );
echo '<p>hey: '.$test_string.'</p>';
Am I missing something?