[wp-trac] [WordPress Trac] #9212: Livejournal importer dropping '<'
on all HTML tags
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 22 15:15:23 GMT 2009
#9212: Livejournal importer dropping '<' on all HTML tags
--------------------------+-------------------------------------------------
Reporter: amaiman | Owner: beaulebens
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Import | Version:
Severity: major | Keywords: LiveJournal, import, HTML, tags
--------------------------+-------------------------------------------------
Whenever I use the Livejournal API importer in trunk to attempt to import
posts from Livejournal, the importer strips the "<" from every HTML tag,
thus outputting unusable results. (The tags are visible in the post,
since they don't get processed by the browser without the "<", thus all
formatting/images/etc. in the posts are lost.)
I have tried this with both my Livejournal (containing over 100 posts) and
a new journal that I created containing only a test post with various HTML
tags, I got the same results with both.
This problem may not be within the livejournal.php file, it may have been
caused by a change to some other component within Wordpress trunk, I
haven't had the time to track it down and I'm not particularly familiar
with the Wordpress source yet. This behavior is occurring with the
version of trunk current as of the time this ticket was entered.
An example:
Source post in Livejournal:
{{{
Testing this post.
<b>Bold</b>
<i>Italic</i>
<u>Underline</u>
<p><p>
<img src="http://p-stat.livejournal.com/horizon/logo.gif">
<br><br>
More tests:
<a href="http://www.livejournal.com">Link</a>
<a href="http://www.livejournal.com"><img
src="http://p-stat.livejournal.com/horizon/logo.gif"></a>
End.
}}}
Resulting contents in Wordpress after running the importer:
{{{
Testing this post.
b>Bold/b>
i>Italic/i>
u>Underline/u>
p>p>
img src="http://p-stat.livejournal.com/horizon/logo.gif">
br>br>
More tests:
a href="http://www.livejournal.com">Link/a>
a href="http://www.livejournal.com">img
src="http://p-stat.livejournal.com/horizon/logo.gif">/a>
End.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9212>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list