• I’m trying to import some static pages into WP (2.0.3) via the Import RSS function. I created my RSS file via the feed from my own site and then stripped it down so that I had the essential elements.

    I have a test post that I want to import that has both CLASS and in-line STYLE elements in the tags of the content. These are are being stripped out by the import process (with obviously some disagreable results!)

    Examples:

    <P class=SectionHeader>
    becomes
    <P>

    AND

    <IMG style="PADDING-LEFT: 10px; FLOAT: right; PADDING-BOTTOM: 10px"
    becomes
    <IMG

    I’ve looked in wp-admin/import/rss.php and can’t find anywhere (obvious) where it’s doing this, nor in wp-admin/admin-functions.php. So, I’m at a loss as to:

    1. Why (what is the intented purpose) it’s doing this
    2. Where it’s doing this (so I can change it)

    Thanks for any insight/ideas/advice anyone can give! ;c)

Viewing 1 replies (of 1 total)
  • Thread Starter dleigh

    (@dleigh)

    For more information, the format of the RSS file that I got from WordPress had put all the content in a CDATA container which was in a “content:encoded” tag. I just read somewhere that “content:encoded” is NOT SUPPOSED to contain any STYLE or CLASS elements to be a valid RSS feed.

    So be it, but I’m really using this as a one-time import vehicule and not trying to create a valid RSS feed. What I DON’T get is WHERE the CLASS and STYLE stuff is being stripped out. If anyone could help me find that it would be great.

    I suppose…since I’m already putting my posts into this RSS format…that perhaps just choosing some OTHER format that WordPress supports (e.g. from MT into WordPress) might be a good solution. In that vein, can anyone suggest a format that “imports well” into WordPress?

    Thanks for all your help!

Viewing 1 replies (of 1 total)
  • The topic ‘Import via RSS strips style and class tags’ is closed to new replies.