Re: [farcry-dev] verity search results

"Jason Croft" <jason.croft-XZoyATsUNX5Wk0Htik3J/[email protected]> Tue, 21 Aug 2007 10:49:03 +0100
Newsgroups gmane.comp.cms.farcry.user
Message-ID <006201c7e3d8$854f0d20$0201a8c0@jase>
Hi

Anyone any ideas on why the verity search results are displaying unwanted characters (such as &amp; instead of &) ? 

Ive tried #paragraphFormat(summary)# on the _search.cfm file, but with no joy.

As a quick test, I created a blank page with  <cfscript>writeOutput (paragraphFormat("&quot;Test&quot;")) </cfscript> which retuned "Test". Which shows that the paragraphFormat() command can achieve the results Im after, but when the command is applied to the variarble 'summary' (which contains the verity search results), it dosnt.

Any info much appreciated

Jase
  ----- Original Message ----- 
  From: Jason Croft 
  To: farcry-dev-/[email protected] 
  Sent: Thursday, August 16, 2007 12:20 PM
  Subject: [farcry-dev] verity search results


  Hi all

  Does anyone know why my search results page is displaying part of the HTML code within the results ?

  For example:-

  "Special Occasion Wear Whilst we say that all our clothes are worth getting dressed for&hellip;. Customers travel, invariably recommended by word of mouth &ndash; and often told by other shops to come to us &ndash; from all over the UK. <span ..."


  The code on _search.cfm within the includedOBJ folder that queries the results is as follows:-

  <cfif isDefined("qResults") AND qResults.recordCount gt 0>
   <!--- output results --->
   <cfoutput query="qResults" maxrows="#maxrows#" startrow="#url.startrow#">
    <div style="margin:0px 30px 10px 0px;">
    <span class="bodycopy">#score#</span>
    <!--- check for extFile or farcry object ---> 
    <cfif left(key,2) eq "\\">
     <a href="#application.url.webroot#/download.cfm?extFile=#key#" class="viewMore">#qResults.title#</a>
    <cfelse>
     <!--- farcry object --->
     <a href="#application.url.conjurer#?objectid=#key#" class="viewMore">#qResults.title#</a>
    </cfif>
    <br>
    <span class="bodycopy">#replaceNoCase(summary,"ededed","88cbdf","ALL")#</span>
    </div>
   </cfoutput>

  Any info much appreciated

  Thanks
  Jase

  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user-/[email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---