Forums

HTML being processed? (7 posts)

  1. cybertron
    Member
    Posted 5 years ago #

    I have just imported all my livejournal posts and none of the html code is being processed, and i'm not sure if i'm doing something wrong or if it is because WP doesnt process it, or what is going on. any idea's?

  2. Root
    Member
    Posted 5 years ago #

    Well I do not know what you mean by processed. By default WP will strip out all html and other code in posts. There is no need for it, it prevents validation errors, and it prevents the uploading of malicious code.

  3. cybertron
    Member
    Posted 5 years ago #

    well here is my blog....
    http://www.goatinatree.com/blog
    and as you can see the links to images or links to other sites are all broken.
    is there a way to convert all the old stuff over to working links, and how do i post pictures in my blog?

  4. Root
    Member
    Posted 5 years ago #

    Well you were talking about importing. WordPress will accept a limited range of tags which are above the posting text box. That should cover your needs for most things including images, links and a bunch of stuff.. If you want to do anything fancy like inputting php code you need to disable the parser.
    Welcome to WordPress.

  5. dannyman
    Member
    Posted 5 years ago #

    Is the parser run when the data is read in, or when the data is read out? It seems sensible that one might allow the parser to pass along raw HTML if I were to ram it down the import tubes ...
    I'm trying to import some really clean HTML that I've parsed into RSS at http://dannyman.toldme.com/blog/migrate-all.rdf ... I've pulled out the bits of the import-rss module that try to escape up my HTML code, but WP does strange things to, for example, my a tags. Perhaps I'll simply try converting my A tags into WP markup?

  6. dannyman
    Member
    Posted 5 years ago #

    Ah. Nothing fancier than stripping newlines from the HTML. :)

  7. rook
    Member
    Posted 5 years ago #

    Look at what is in the database itself to see if your posts have the HTML content you expect. I found that the WP processing done for export to the blog can have unfortunate side-effects. My trials were documented in this thread:
    http://wordpress.org/support/3/8153

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.