WordPress.org

Ready to get started?Download WordPress

Forums

Stripslashes from the_content (1 post)

  1. pwdrskier4
    Member
    Posted 6 years ago #

    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']);

Topic Closed

This topic has been closed to new replies.

About this Topic