Coldfusion replace() not working on xml imported text -


i'm pulling in xml feed third party website. description field feed contains lot of special characters. when run replace tag on text doesn't change anything. can tell me i'm doing wrong. i've tried running same code , typing in 1 of words feed , replace happens successfully. i've tried using demoronize cflib , doesn't change anything.

<cfhttp url="http://somewebsite.com/myfeed.xml" method="get"> <cfset mydoc = xmlparse(cfhttp.filecontent) />  <cfloop from="1" to="#arraylen(mydoc.venues.xmlchildren)#" index="i" >   <cfoutput>     <cfset description = '#mydoc.venues.event[i].description.xmltext#'>      raw description:    #description#<br/>      alt description 1:  #replace(description, "’", "'", "all" )#<br/>      alt description 2:  #replace(description, chr(180), "'", "all" )#<br/>  </cfoutput> <br/><hr/><br/>  </cfloop> 


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -