reddrum wrote:stripcslashes was a typo, am using stripslashes
You also should not be using stripslashes() as there is no reason to do so, and in fact it could corrupt your data. If you want to remove backslashes because you think that some database escaping mechanism added them when you were storing the text to the database, then consider why you write this in PHP:
echo "this is a \"test\"";
instead of:
echo stripslashes("this is a \"test\"");
after all... wouldn't those backslashes be printed if you didn't use stripslashes()? 😉
reddrum wrote:and the data is stored in escaped form which leads me back to my orginal problem, that after striping slashes and echoing the result to the text box everything to the right of the first quote is missing.
If the data is stored in escaped form with respect to HTML, then your original problem should not have been observed.
I suggest that you try this:
<input type="text" value="this is a "test"" />
The above would verify to you that what has been said about the use of htmlspecialchars() is correct. So, the problem must be due to a failure to use the function (or htmlentities()) correctly.