WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8983 closed feature request (invalid)

Import .. strip HTML

Reported by: oregondean Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Import Keywords: reporter-feedback
Focuses: Cc:

Description

Suggestion ... Import.php be modified to add an option to strip HTML from imported posts. Further, I would add options to retain <br>,<p>,<strong>,<em>, and <hr> tags.

The strip_tags command allows this ... strip_tags($post_content,'<br><hr><strong><em><p>');

Change History (4)

comment:1 oregondean5 years ago

  • Component changed from General to Import
  • Owner anonymous deleted

comment:2 DD325 years ago

  • Keywords reporter-feedback added; import html strip tags removed

What would be a use-case for this? And Import from where exactly, or any of the importers?

If a importer is passing the post back with markup applied, It'd probably be expected that posts include that markup..

If an importer works badly with certain setups and includes extra HTML, that'd probably be better fixed in that importer.. so knowing which is having a problem, and an example export which will create the problem could be of help

comment:3 FFEMTcJ5 years ago

  • Milestone changed from 2.8 to Future Release

comment:4 Denis-de-Bernardy5 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

seeing no use for this either, and it could be done with a plugin

Note: See TracTickets for help on using tickets.