Well, if he just outputted the result in 2 to the screen, it would show up
to the ser as the result in 3, of course, right? :-)

That's where I'm not clear on the confusion, but getting him to clarify will
indeed help.

 

/charlie

 

From: [email protected] [mailto:[email protected]] On Behalf Of Ajas Mohammed
Sent: Friday, January 28, 2011 12:45 PM
To: [email protected]
Subject: Re: [ACFUG Discuss] XML data showing in dump but not in cfoutput

 

Charlie,

I think He wants the result you show in 3.Michael feel free to correct me.

I got him to the point like you showed in 2 i.e. with <p> tags etc by using
replacelist function to get rid of CDATA etc.
<p class="meta"><strong>Property
Description:</strong>#replacelist(shortDescription, '<![CDATA[,]]>','')#</p>

Steve mentioned a link that would take care of replacing html tags.

<Ajas Mohammed />
http://ajashadi.blogspot.com
We cannot become what we need to be, remaining what we are.
No matter what, find a way. Because thats what winners do.
You can't improve what you don't measure.
Quality is never an accident; it is always the result of high intention,
sincere effort, intelligent direction and skillful execution; it represents
the wise choice of many alternatives.



On Fri, Jan 28, 2011 at 12:37 PM, Charlie Arehart <[email protected]>
wrote:

That wasn't clear to me. Thanks.

So let's make it simple for everyone to follow along and perhaps resolve
things. It would be as if you (Michael) did this (always helpful to offer a
simple reproducible case):

<cfset x = "<![CDATA[&lt;p&gt;&lt;strong&gt;Location.&lt;/strong&gt; &lt;br
/&gt;This condo property is located in Celebration. Old Town is an area
attraction. Another nearby attraction is Wide World of Sports.
&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Features. &lt;/strong&gt;]]>">

<cfoutput>

#x#

</cfoutput>

What would be the output you would want to appear? 

1) Is it:

<![CDATA[<p><strong>Location.</strong>; <br />This condo property is located
in Celebration. Old Town is an area attraction. Another nearby attraction is
Wide World of Sports. </p><p><strong>Features.</strong>]]>

---
2) Or do you want:

<p><strong>Location.</strong>; <br />This condo property is located in
Celebration. Old Town is an area attraction. Another nearby attraction is
Wide World of Sports. </p><p><strong>Features.</strong>

-----
3) Or do you want:

Location.


This condo property is located in Celebration. Old Town is an area
attraction. Another nearby attraction is Wide World of Sports.

Features. 

---


/charlie

 




-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to