Martin Thoma wrote:
> Hello!
> I have a simple hidden input-field like
> <INPUT TYPE="HIDDEN" VALUE="Hello world" NAME="Message">
> Now sometimes I need to insert " like:
> <INPUT TYPE="HIDDEN" VALUE="Hello \"world\"" NAME="Message">
> But this makes PHP (or the browser?) cutting of the string after
> "Hello ". How can I escape the "?

Using the htmlspecialchars() function, so that "Hello \"world\"" will be
written in pure HTML: "Hello &quot;world&quot;"


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to