Feeds:7.x-2.x-dev
Feeds xpath parser:7.x-1.x-dev
I imported html code from xml, the html code is contained in CDATA, like below:
<NOTIFYTEXT><![CDATA[<br>line 1<br>line2<br>line 3<br>line 4<br>]]></NOTIFYTEXT>
In preview:
line 1
line 2
line 3
line 4
However, the node display like this:
<br>line 1<br>line2<br>line 3<br>line 4<br>
Another weird thing is that if I edit this field, like add some words:<br>line 1<br>line2<br>line 3<br>line 4<br> add add add add add
It will become all right in display.
Any idea or discussion is appreciated, thanks!
Comments
Comment #1
twistor commentedWhat do you mean by "in preview"?
What kind of input filters do you have set up on this field?
Are you using the raw xml setting?
Comment #2
liangzhuatdrupal commentedHi twistor,
Thanks for your reply!
by "in preview", I mean the "preview" button in edit page.
The filter of this field is "Correct faulty and chopped off HTML ". Actually, I use "filterd html" and "full html" as input format at first, now I add a new format "super editor" and apply to this field, this format only use a filter"Correct faulty and chopped off HTML ". But for all the three formats I choose, it will always display
or
tags after the import.
I don't quite understand "raw xml setting",?
I have atttached some snapshots, hope it will make it more clear to understand.
Best!
Julie
Comment #3
generalredneckI assume I'm Having the same or simular issue:
I have a content type with the body field renamed to Description. I'm importing an RSS feed node that looks something like this.
I've got the context to look for /rss/channel/item and the description field to look for book_description. I have raw xml turned off and I get:
stuck in the description field, and if I turn on raw XML, I get the tag, CDATA and all. Even tried doing book_description/text() and I get simular results.
Here is what my settings look like for the node processor:

I really hope that I'm just making a stupid mistake... but I get what liangzhuatdrupal is saying... If I goto the node after it's imported and click preview or save... then the markup is displayed correctly. but not until then.
Comment #4
liangzhuatdrupal commentedHi all,
I find the reason.
By the importing, the format is not written correctly into the database.
If I check the field in the database, the format is "null", only after I click "preview" or "save", the format value will be correctly filled with, for example, "super editor" in my case.
My solution is to use php code to update all the format after importing.
Hope this bug could be fixed.
Comment #5
twistor commentedThis was fixed in the last release of Feeds.
Comment #6.0
(not verified) commentedupdates