by using the backlash character effectively
. The backlash character is used to escape
these special characters without any problems. PHP
However, when the string is inserted dynamically, you should avoid any characters that can cause an error (apostrophe, quote or double quote, backslash).
function addslashes (ch) (
ch.replace ch = (/ \ \ / g, "\ \ \ \")
ch.replace ch = (/ \ '/ g, "\ '")
ch.replace ch = (/ \ "/ g," \ \ \ "")