Hi everyone, I have a submit form on my website that display's to the user once is has been submitted,
The problem I have is the text is being displayed as
Chris & Amy\'s 30th

It should be displayed as Chris & Amy's 30th
What is the best way to have this displayed correctly please.

Thanks in advance,

Share the PHP that has the "Chris & Army" text string in it so folk can see what's going on.

<?php
$var = "Chris & Amy's 30th";
echo htmlspecialchars_decode($var);
?>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.