On Thursday, October 24, 2002, at 01:53 PM, Adam Powell wrote:

A couple questions I couldn't find the answers to in the archives:

1. Is there a way to strip out elements from the search returns? In our case, each <title> tag in the site includes the site name. So headers from search returns kook like this:

The Onion | Damn You, Hearst!
The Onion | I Miss My Old Sled
The Onion | Drop Dead, Every Last One of You!
I don't think there is any way to do this short of writing your own code to change the titles either as they are parsed on their way into the database or as they are returned from the database in response to a query.

2. I see that there are configuration attributes for translate_latin1, translate_amp, and translate_lt_gt: false

I thought translate_latin1: false might work, but I'm still getting the entity &#151;

printing out on the page instead of the em-dash in search results. Is there a config attribute I'm missing?
I am guessing you are using a 3.2.x beta version of ht://Dig. The translate_* attributes are not available in the 3.2.x branch. The problem with the entity showing up in search results has been reported previously. See

http://www.geocrawler.com/mail/msg.php3?msg_id=6835732&list=8822

A patch was submitted, but it seems there was a question as to whether the proposed fix was really the best solution.

Jim



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html


Reply via email to