UndeadDragon
Super Moderator
- Reaction score
- 447
I have been making a simple CMS for someone for their website, but I have hit a problem, where when he tries to insert a £ symbol into page, it updates it correctly in the database, but when it tries to display on the website, it gives a strange ? symbol.
I have tried using:
That works, but it also changes all the other tags when it is used, so I can see all square brackets etc.
Anyone have any ideas?
I have tried using:
PHP:
$contents = $row['contents'];
$new = htmlentities($contents);
echo $new;
That works, but it also changes all the other tags when it is used, so I can see all square brackets etc.
Anyone have any ideas?