I have this following string that I am trying to populate a textarea with how do I escape the ” and ‘ in order for the text to show up in the box? Here is the code below:
$(document).ready(function(){
$('#queryarea').html("mysql_query("INSERT INTO Persons (FirstName, LastName, Age)
VALUES ('Peter', 'Griffin', '35')")");
});
You can escape them by doing
\"