I'm executing some javascript functions from php using the following:
echo '<script language="javascript" type="text/javascript">window.top.window.updateLog("fornecedores","'.$errorMsg.'");</script>';
The problem is that sometimes $errorMsg has some "
what make it syntax incorrect.
What should I do?
Thanks