I am having issues with the HTML Special Characters function in PHP. Here is my code:
$job_title = "inside sales";
$job_title = htmlspecialchars($job_title, ENT_QUOTES);
echo $job_title;
I get "inside sales" as my end result. It's my understanding that this function should add the html specifications for a space. Is this not correct? I've also tried it with something with a ' or " and that never gets translated to " which is what I am expecting. I am trying to pass this value through the link:
mypage.php?job_title=$job_title
...but I only get "inside" instead of "inside sales." Any ideas? Thanks!