I have a form that is being output to a third party and using stripslashes on my POSTS has worked fine for review while still on form page, but once it is submitted, anything after a double quote gets dropped and if there are single quotes then I still see single backslashes. I cannot figure out the right setup to allow for both single and double quotes to be used in a text input and then return correct to be sent to SalesForce.
entry example of two fields:
<label for="subject">Subject Line:<span>*</span> <span class="addParenth"> (Summarize your issue in one sentence)</span></label>
<textarea id="subject" name="subject" cols="60" rows="2" required data-rule-maxlength="100"></textarea>
<div id="charNumSub"></div>
<label for="description">Description:<span>*</span></label>
<textarea id="description" name="dd_description" cols="60" rows="5" required data-rule-maxlength="2000"></textarea>
<div id="charNum"></div>
form then loads to next page:
$subject = htmlspecialchars($_POST['subject']);
$dd_description = htmlspecialchars($_POST['dd_description']);
review on page:
Subject:<strong> '. stripslashes($subject) .'</strong><br />
Description:<strong> '. stripslashes($dd_description) .'</strong><br />
So I continue to get the review to work for the double quotes but not the single quotes but the double quotes drop anything after input when sent to SalesForce.