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: [EMAIL PROTECTED]            Internet: http://www.inwise.de

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word unsubscribe in
the SUBJECT of the message.

Reply via email to