Re: Octstr support for converting to and from HTML 4 entities.
Rene Kluwen / Chimit Software Solutions <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Oded, Apart from the octstr_insert_char bug. This code is also not completely correct. If you try to run it on a string with a non-defined (in html-entities.def) entity, it will loop for ever. -- Rene... Sunday, September 22, 2002, 8:09:01 PM, you wrote: OA> Hi list. OA> We needed the ability to encode data to XML/HTML with HTML 4 entities as defined by W3C, so I thought that adding it to the Octstr infrastructure would be nice - so that other people will be able OA> to use it. OA> So here it is for your review - don't spare the ammo. OA> Both conversions (to HTML entities and from) are using a .def file that is included into the code. the 'to' coversion is very straight forward and should be very easy. I'm afraid that the 'from' OA> conversion is rather processor intensive - I'm yet unsure as to how to make it more efficient and still keep it as readable. OA> -- OA> Oded Arbel OA> m-Wise mobile solutions OA> [email protected] OA> +972-9-9581711 (116) OA> +972-67-340014 OA> ::.. OA> Finagle's laws for existentialists - OA> 8.Everything takes longer than you think -- Best regards, Rene mailto:[email protected]