Opened 5 years ago
Last modified 3 years ago
#48366 new enhancement
Export valid paragraphs HTML with wpautop applied
Reported by: | Rarst | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Export | Keywords: | |
Focuses: | Cc: |
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?
Note: See
TracTickets for help on using
tickets.