Results 1 to 3 of 3

Thread: Input Value Escape "

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default Input Value Escape "

    How do I escape a double quote in html?

    I want to use it like this

    Code:
    <input type="text" value="John said "Hello, there"?" />
    I've tried

    Code:
    <input type="text" value="John said \"Hello, there\"?" />
    and

    Code:
    <input type="text" value="John said 'Hello, there'?" />
    Corrections to my coding/thoughts welcome.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Actually, the single quotes do work but I'd prefer to use double quotes if possible.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •