If you actually write out what you’re echoing, I think that you’ll see the issue:
<input name="title" type="hidden" id="title" value="17\\" Black LCD" />
Can you see how the quote makes the value seem like it’s 17\? One thing that you could do is use htmlentities to change the first post (with " instead of " you won’t run into the problem!), and then use html_entity_decode to undo the operation. If you check out the first example here:
You’re welcome! And if it doesn’t make sense, feel free to post again. Also, not to add another bag of worms, but it seems that you have magic quotes turned on php.net/manual/en/security.magicquotes.php (this is the reason for the added slash). You might want to read up on this feature that will soon be deprecated in PHP and consider turning magic quotes off in your ini file or perhaps use a more updated version of PHP.
My apologies: I should have been clearer. In the decode example on the webpage that I sent you to, the first step was to use htmlentities. In retrospect, I should have just sent you to the htmlentities page as guido did. However, it looks like guido cleared it up for you.