Support » Fixing WordPress » Stripslashes from the_content

  • I want to do something to this effect:

    <?php stripslashes(the_content()); ?>

    But it doesn’t work. Is there a way to apply stripslashes to the_content.

    I am building a custom plugin that lets users alter the content on certain posts. When the data is entered back into the database, it is first escaped such as:

    $content = $wpdb->escape($new['content']);

  • The topic ‘Stripslashes from the_content’ is closed to new replies.