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

twistor’s picture

Component: User interface » Code
Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

What 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?

liangzhuatdrupal’s picture

Hi 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

generalredneck’s picture

StatusFileSize
new139.24 KB

I 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.

<rss>
<channel>
<item>
 <book_description><![CDATA[Daven Carrickson grew up as a beggar in the filthy alleys beneath the shadows of the palace. He's the son of a known thief, disgraced and despised. His only real talent is his ability with a sword, and his only real chance at finding honor or a home is a desperate dream of joining the King's Guard.<br /><br />Then Daven receives a new future when Master Claighan invites him to study magic at the Academy.]]></book_description>
</item>
</channel>
</rss>

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:

Daven Carrickson grew up as a beggar in the filthy alleys beneath the shadows of the palace. He's the son of a known thief, disgraced and despised. His only real talent is his ability with a sword, and his only real chance at finding honor or a home is a desperate dream of joining the King's Guard.<br /><br />Then Daven receives a new future when Master Claighan invites him to study magic at the Academy.

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.

liangzhuatdrupal’s picture

Hi 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.

twistor’s picture

Project: Feeds XPath Parser » Feeds
Status: Postponed (maintainer needs more info) » Fixed

This was fixed in the last release of Feeds.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

updates