Re: gnumeric bug in HTML export: '&' not escaped

On Tue, Feb 06, 2001 at 03:15:36PM -0500, Jody Goldberg wrote:
On Tue, Feb 06, 2001 at 11:51:15AM -0800, Henry House wrote:

Here's an easy one: Gnumeric (as of version 0.61 as packaged by Ximian) does
not escape the ampersand in HTML export, i.e., the raw ampersand appears in
the output.
Fixed.  Thanks.

I've added (for import and export)
    & &amp
    ' &apos
    " &quot

We already had
    < &lt
    > &gt
This code should really be using libxml for this sort of silliness.

  yep in libxml2 there is a function (and ever an encoding filter) to handle
this. You can look at xmlEncodeEntityReentrant()


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]