Title: Extra code in WordPress.com export killing import
Last modified: August 19, 2016

---

# Extra code in WordPress.com export killing import

 *  Resolved [mscrafty](https://wordpress.org/support/users/mscrafty/)
 * (@mscrafty)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/extra-code-in-wordpresscom-export-killing-import/)
 * Trying to import a blog from WordPress.com to self-hosted. Lots of experience
   doing it, but never ran into this problem before. Posts are only importing part
   of the way.
 * I looked at the .xml file, which has the entire posts in it, and when they’re
   broken they appear to break due to either an inappropriate html tag (like `<span
   > </span>`, whether or not there’s text in the middle) or a bad character (curly
   quotes/apostophes) Other times the html tags, at least, are fine.
 * I did some manual experimentation on a few posts and when I took out the improperly-
   styled apostrophes, dashes, and removed all the useless spans, the entire post
   imported fine.
 * Does anyone know of a way to force WordPress just to accept the code? I can do
   find and replace for the curly apostrophes, the em dashes, etc, but I can’t find
   and replace all the bad spans, etc, that have crept into this blog over the last
   few years. (There are a LOT.) I’d have to do that manually on 570 posts.
 * And does anyone know if there’s a method in Notepad++ to delete a pair of tags
   at the same time? Never looked into it because I haven’t had to do it on such
   a large scale.
 * The affected site is [http://funny-about-money.com](http://funny-about-money.com),
   if you’d like to see how it breaks things off.

Viewing 1 replies (of 1 total)

 *  Thread Starter [mscrafty](https://wordpress.org/support/users/mscrafty/)
 * (@mscrafty)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/extra-code-in-wordpresscom-export-killing-import/#post-1057322)
 * After some brainstorming, I think I’ve got the solution, so nevermind.

Viewing 1 replies (of 1 total)

The topic ‘Extra code in WordPress.com export killing import’ is closed to new replies.

## Tags

 * [html problem](https://wordpress.org/support/topic-tag/html-problem/)
 * [import error](https://wordpress.org/support/topic-tag/import-error/)
 * [WXR](https://wordpress.org/support/topic-tag/wxr/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [mscrafty](https://wordpress.org/support/users/mscrafty/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/extra-code-in-wordpresscom-export-killing-import/#post-1057322)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
