I have HTML in a database which I want to show with facebox (jquery popup). I use the PHP code below to render the button that launches the facebox
$html.="<img onclick='$.facebox(\"".$db_data[html]."\");' src='img.png' />";
How can I escape things properly so that facebox will get also ' and " in $db_data[html]? (for example if the html includes styles?)