
From tneuer@inwise.de Fri Jul 30 13:36:18 1999
Date: Fri, 30 Jul 1999 20:05:03 +0200
From: Torsten Neuer <tneuer@inwise.de>
To: htdig@htdig.org
Cc: htdig@htdig.org
Subject: Re: [htdig] Problem with &..; entities in meta tags


According to Gilles Detillieux:
>+//*****************************************************************************
>+// char * HTML::transSGML(char *text)
>+//
>+char *
>+HTML::transSGML(char *str)
>+{
>+    static String	convert;
>+    unsigned char	*text = (unsigned char *)str;
>+
>+    convert = 0;
>+    while (*text)
>+    {
>+	if (*text == '&')
>+	    convert << SGMLEntities::translateAndUpdate(text);

SGMLEntities::translateAndUpdate() already advances the text pointer,
so we need to change this:
>+	else
>+	    convert << *text;
>+	text++;
into that:
	else
	    convert << *text++;
>+    }
>+    return convert.get();
> }

Then it works ;-)


cheers,
  Torsten

--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstraße 14                            Tel: +49-4101-403605
D-25474 Ellerbek                            Fax: +49-4101-403606
E-Mail: info@inwise.de            Internet: http://www.inwise.de

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig@htdig.org containing the single word unsubscribe in
the SUBJECT of the message.
