If you see > on screen, it's probably &gt; (or &lt; for <) in reality.
This is how you display < > in browsers since <> are normally used for
HTML. If you want to remove them, you can do:

<cfset cleaned = replace(str,"&lt;","","all")

and also do a replace for &gt; (or use replacelist).

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: James Johnson [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, July 26, 2003 2:57 PM
> To: CF-Talk
> Subject: Stripping <> from string
> 
> 
> Hello,
> 
> I'm parsing an XML string and can't figure out how to remove 
> the "<" and ">" from the string.
> 
> Here's a sample string:
>  >6800468< 
> 
> The value above is returned from a function "MidString" found 
> at CFLib.org. Here's how I'm trying to get the numbers from 
> between the > < symbols:
> 
> <cfset TransIDStart = "TransactionID">
> <cfset TransIDEnd = "/TransactionID">
> <cfset TransID = #MidString(XMLReturn,TransIDStart,TransIDEnd)#>
> <cfset TID = #Mid(TransID,1,Len(TransID)-1)#>
> 
> I have also tried this:
> <cfset TID = #RemoveChars(TransID,1,2)#>
> 
> And it returns a real funky string:
> 
> t;6800470< 
> 
> Thanks,
> 
> James
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to