According to Patrick Jennings:
> I'd like the META description** field to contain an <IMG > tag so that the
> search results page will show a left-aligned image beside the description.
>
> htdig's current behaviour is to replace '<' with '<' and '>' with '>'
> which, of course, results in printing out the HTML code as the description,
> rather than generating an inline image, as desired.
>
> The question is: what do I change in the code to stop this conversion?
Well, first of all be aware that this is extremely non-standard behaviour.
You normally can't embed HTML tags within HTML tags in this manner.
However, if you want this as a site-specific kludge, you can do this by
changing the following line in htsearch/Display.cc's Display::excerpt()
method (at line 1118 in unpatched 3.1.5 code):
encodeSGML(head_string);
to
if (!use_meta_description) encodeSGML(head_string);
> **Actually, I'd already added a new META called "htdig-description" so I can
> have a different description for htdig search results than will be displayed
> by web search engines, directories, etc. However, this addition only
> involves 'or'ing "htdig-description" with the test for "description" in
> HTML.cc, so essentially the code remains as originally written.
OK, so there were no corresponding changes to htsearch, as it used the same
database field. I assumed that in the kludge above.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
Information: http://lists.sourceforge.net/lists/listinfo/htdig-general
FAQ: http://htdig.sourceforge.net/FAQ.html