Ajas, Charlie

The cfset did the trick!  See output on http://dev.hotdeals.com/index.cfm

On Fri, Jan 28, 2011 at 1:02 PM, Ajas Mohammed <[email protected]> wrote:

> Charlie, spot on. I was expecting the same result because those html tags
> should show up fine. Guess what they are actually lt gt etc in variable
> thats why they show up as html tags when the result is being shown.
>
> So the fix is this. This works.I removed all gt lt etc.
>
> <cfset      shortDescription1 =    replacelist(shortDescription,
> '<![CDATA[,]]>,&lt;p&gt;&lt;strong&gt;,&lt;/strong&gt; &lt;br
> /&gt;,&lt;/p&gt;','')>
>
> <strong>Property Description:</strong>#shortDescription1#
>
> HTH
>
> <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:50 PM, Charlie Arehart <[email protected]>wrote:
>
>> 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 FusionLink <http://www.fusionlink.com>
>> -------------------------------------------------------------
>>
>
>


-- 
Michael Brown
770-605-5240

Marketing Solutions with vision!
http://www.singleconcepts.com

Reply via email to