WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Is there an inverse of wpautop? (1 post)

  1. Mark Tuttle
    Member
    Posted 3 years ago #

    Is there a php function that is the inverse of wpautop?

    A function that takes well-formed html and strips out the <p> and br tags in such a way that applying wpautop will reproduce the original well-formed html?

    I'm trying to import static html into WordPress. The import plugin sticks well-formed html into the database, and when the wpautop filter is applied when the page is displayed, an extra </p> is sometimes inserted into the page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.