WordPress.org

Ready to get started?Download WordPress

Forums

Is there an inverse of wpautop? (1 post)

  1. Mark Tuttle
    Member
    Posted 1 year 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.