I\'m trying to store a String which contains HTML in a MySQL database using Longtext data type. But it always says \"You have an error in your SQL
String
Longtext
You need to escape a string before inserting it into database.