When i retreive data from form and when i need to submit that data in mysql database, I get some errors. I know that the problem is in ' and " characters
My php code for submiting data :
$sql = 'INSERT INTO news (id,name)
VALUES ("$id","$name")';
Variable $name is retreived from form. $name= $_POST["name"];
So, if variable $name has value of 
<p>
<span style="color: rgb(68, 68, 68); font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 26.672px;">1. Some text for example</span><br>
</p>
How I can query that text when there are problems between ' and "
 
     
     
     
    