I'm currently trying to setup a comment system with TinyMCE, it's all working with normal characters and PHP tags and so on. But when I comment with this ed o'neill
, it just inserts an empty row in my db.
I have htmlspecialchars
and mysqli_real_escape_string
on the input from my form.
How can I fix the empty row insert?
$post_content = $_POST['post_content'];
//$post_content = htmlspecialchars($post_content);
//$post_content = mysqli_real_escape_string($post_content);