Hello,

I have a little problem and I hope someone can help me fix it.

As you can see in the script below, I get this scriptoutput when i select yes in "Escape row content as CDATA".
Every single row becomes CDATA. That's not what I want.


HTML Formatted Information Display

It will supports bold, italic, color, etc. Also support html tags so that it can be formatted in a nice manner.It will of course be multiline and it will resize acording to the size of the inputed text.]]>

What I want is to have only the section in CDATA (script below). Does anyone know how to get this done?

thumbs/1.jpg test-images/1.jpg
Rocky Beach http://www.google.com _blank HTML Formatted Information Display

It will supports bold, italic, color, etc. Also support html tags so that it can be formatted in a nice manner.It will of course be multiline and it will resize acording to the size of the inputed text.]]>

Thank you in advance!

Comments

apiko’s picture

Priority: Major » Normal

* sorry for the previous post, there's been a mistake and unfortunaely not possible to change.

Hello,

I have a little problem and I hope someone can help me fix it.

As you can see in the script below, I get this scriptoutput when i select yes in "Escape row content as CDATA".
Every single row becomes CDATA. That's not what I want.

<picture>
<thumb><![CDATA[thumbs/1.jpg]]</thumb>
<item><![CDATA[test-images/1.jpg]]</item>
<description><![CDATA[Rocky Beach]]</description>
<link><![CDATA[http://www.google.com]]</link>
<par><![CDATA[_blank]]</par>
<displayText><![CDATA[<p><font size="18" face="Arial"color="#C6E4FF">HTML Formatted Information Display</font></p><font size="12" face="Arial" color="#FFFFFF">It will supports <b>bold</b>, <i>italic</i>, <font color="#61acc4">color</font><font size="12" face="Arial" color="#FFFFFF">, etc. Also support html tags so that it can be formatted in a nice manner.It will of course be multiline and it will resize acording to the size of the inputed text.</font>]]></displayText>
</picture>

What I want is to have only the section in CDATA (script below). Does anyone know how to get this done?

<picture>
<thumb>thumbs/1.jpg</thumb>
<item>test-images/1.jpg</item>
<description>Rocky Beach</description>
<link>http://www.google.com</link>
<par>_blank</par>
<displayText><![CDATA[<p><font size="18" face="Arial"color="#C6E4FF">HTML Formatted Information Display</font></p><font size="12" face="Arial" color="#FFFFFF">It will supports <b>bold</b>, <i>italic</i>, <font color="#61acc4">color</font><font size="12" face="Arial" color="#FFFFFF">, etc. Also support html tags so that it can be formatted in a nice manner.It will of course be multiline and it will resize acording to the size of the inputed text.</font>]]></displayText>
</picture>
sunchaser’s picture

looking for this functionality too (using views3 / d7)

even better I would like it to be

<root>
<school attribute1="value" attribute2="value" attribute3="value">
      <shortinfo>
	       <![CDATA[ This is html<br>and so fort <b>blahblah</b>
               ]]>
     </shortinfo>
</school>

<school ....

shawn dearmond’s picture

Version: 6.x-1.0-beta2 » 7.x-1.x-dev
Assigned: apiko » Unassigned
Category: Support request » Feature request
Issue summary: View changes

I still see no way to do this. I'll make this a Feature Request.

I can imagine the settings
instead of: "Escape row content as CDATA" (yes/no)
have it do this instead:
Escape row content as CDATA for fields:
[x] Title
[x] Description
[ ] Node ID
[ ] Category

shawn dearmond’s picture

Title: CDATA Problem » CDATA escaping selectable by field

Changing title to more appropriate