• Resolved wordcracker

    (@wordcracker)


    Hi

    I added CKeditor to my WP comment form but it has some problems.
    I was told that I need to run the following function on the content posted from CKeditor before inserting into the database:

    stripslashes($_POST['content']);

    I think I need to apply stripslashes() using a filter related to the input value of the comment entered by a user before it’s inserted into the database.
    I tried many ways (within my ability) but in vain.

    How can I apply stripslashes() to the comment content before the content is inserted into database?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I apply stripslashes to the comment content before it's saved to DB?’ is closed to new replies.