Opened 7 years ago
Last modified 5 years ago
#48366 new enhancement
Export valid paragraphs HTML with wpautop applied
| Reported by: | Rarst | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Export | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WordPress exports post content mostly as is from database. It runs through the_content_export filter, which does not by default have any of the typical the_content filters added.
The most visible impact is that wpautop() is not applied and paragraphs have no <p> tags around them.
Effectively this makes exported content corrupted for systems other than WordPress itself.
In spirit of "own your data" I suggest this is reconsidered, in favor of exporting valid platform-agnostic HTML markup.
From a quick look on implementation levels it seems just adding wpautop() might not be sufficient due to a special blocks-related logic in WP 5+ ? Or can that be ignored for export purposes?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)