Run »
"; echo addslashes($str) . " This is safe in a database query."; ?>
Who's Peter Griffin? This is not safe in a database query.
Who\'s Peter Griffin? This is safe in a database query.