Gossamer Forum
Home : Products : DBMan : Customization :

tag becoming part of the url

Quote Reply
tag becoming part of the url
I have a slight problem with dbman. When serching for a keyword, the item they are looking for comes in bold, well, if the keyword happens to be a part of a url, the <b> tag also becomes part of the url and returns an error. For example, if someone is searching for silk(keyword) and the url it is associated with happens to be silkland.com

Is there a way I can retain the bold on the keywords or matching items and at the same time keep it completely out of the url that gets printed out???

Thanks in advance for your help.

Jay
Quote Reply
Re: tag becoming part of the url In reply to
Yes...Add the following codes to your sub html_record and sub html_record_long routines in your html.pl:

Code:
$rec{'FieldName'} =~ s/<?.B>//g;

Put this before the following code:

Code:
my (%rec) = @_;

Also change the FieldName to your field name.

BTW: This has been discussed in this Forum and also there is a FAQ regarding this glitch in the Resource Center.

http://www.gossamer-threads.com/...es/Detailed/169.html

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 16, 1999).]
Quote Reply
Re: tag becoming part of the url In reply to
That did it.
Thanks Eliot Smile
Quote Reply
Re: tag becoming part of the url In reply to
Great! Glad it worked.

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us