I'm trying to do inline editing for my website using jQuery so I can edit the HTML and text of a page without having to change the source. When I submit the form data though jQuery's $.ajax function, it escapes all the quotes. How can I either prevent jQuery from escaping this(probably a bad idea) or remove them on the PHP side of things. I tired stripslashes...but that didn't do anything. I know it's jQuery because if I do htmlentities() before submitting the text to MySQL...the slashes are still added.
            Asked
            
        
        
            Active
            
        
            Viewed 1,111 times
        
    0
            
            
        - 
                    `htmlspecialchars()` is almost always preferred to `htmlentities()` despite what Chris Shiflett says in his book. – Ollie Saunders Oct 25 '09 at 05:43
1 Answers
2
            It's not jQuery that's magic_quotes in PHP. Here's how you can remove them.
 
    
    
        Community
        
- 1
- 1
 
    
    
        Ollie Saunders
        
- 7,787
- 3
- 29
- 37
