Avoid escaping of characters in appliance search results

robert.vreeland
Posts: 12
Joined: Thu Mar 29, 2007 1:39 pm

Avoid escaping of characters in appliance search results

Post by robert.vreeland »

I am using the 'Data from Field' on the 'All Walk Settings' page to find an img src tag on the page being indexed and display that img src tag in the Description field of the search result, so that the user will see an image under each search result.

My find/replace works, but the greater than/less than signs in the search results are being escaped to &gt and &lt , so the user will see the text of the img src tag instead of the image.

Is there a way to tell the Appliance to either (1) display particular characters without escaping them, or (2) turn off escaping altogether in the search results?
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Avoid escaping of characters in appliance search results

Post by John »

The default search results will do that to prevent arbitrary HTML ending up on the search results, possibly causing issues.

You may be able to use an additional field to hold the image url, and then display using XSL to create the <img> tag.
John Turnbull
Thunderstone Software