WordPress.org

Make WordPress Core

Opened 5 weeks ago

Last modified 3 weeks ago

#50540 new defect (bug)

Export strips HTML tags from Post Titles

Reported by: MadtownLems Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4.2
Component: Export Keywords: 2nd-opinion
Focuses: Cc:

Description

As far as I can tell, html tags are permissible in Post Titles. For example, we use post title such as "Sea thrift, <em>Armeria maritima</em>" to properly designate the scientific name of the plant.

When performing a standard Export, these tags are stripped and not present in the export file.

It looks like do_export uses the 'the_title_rss' filter, which strips all tags. If html tags (or a subset of them) are permissible in Post Titles, then I believe these shouldn't be stripped out when doing an export.

Change History (1)

#1 @donmhico
3 weeks ago

  • Keywords 2nd-opinion added

These make sense to me but before we create a patch for this I would like some more input from other devs.

Note: See TracTickets for help on using tickets.