Skip to main content.
home | support | download

Back to List Archive

Getting a description out of the html <body>

From: Markus Strickler <markus(at)not-real.braindump.ms>
Date: Wed Mar 27 2002 - 12:32:41 GMT
Hi-

I was just wondering how other people get a decent description out of an
HTML page's body tag.
Most of the time the first few characters are navigation or similar
things.
Is there a way to use for example the contents of <span
id="content">..</span> or something similar as description?
Also when using HTML2 parser (at least on windows) like this:

StoreDescription HTML2 <body> 255

The shwishdescription property starts with the properties of the body
tag.
For exampleif my html contains:
<body class="portal" bgcolor="#F0F0F0" text="#000000" link="#000000"
vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0"
topmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

Swishdescription will start with:
class="portal" bgcolor="#F0F0F0" text="#000000" link="#000000"
vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0"
topmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

followed by the contents of the body tag.
Is this a bug? Or did I something wrong in the config?

Regards,

-markus
Received on Wed Mar 27 12:32:58 2002