Re: [htdig] Problem with &..; entities in meta tags


Torsten Neuer (tneuer@inwise.de)
Fri, 30 Jul 1999 20:05:03 +0200


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.



This archive was generated by hypermail 2.0b3 on Fri Jul 30 1999 - 10:25:24 PDT