On Tue, Sep 3, 2013 at 11:19 PM, Philip Kent <[email protected]> wrote:
> Hi all, > > I noticed an issue today with the html-parser egg, where it does not seem > to decode entities within an attribute of an element, I have included an > example below. > > #;14> (html->sxml "<div data-foo=\""\">") > (*TOP* (div (@ (data-foo """)))) > > *Expected: **(*TOP* (div (@ (data-foo "\""))))* > > I was wondering if anyone could provide some thoughts as to why this might > be happening? I have taken a look at the html-parser egg but have not seen > much (but then this goes far beyond my knowledge of scheme!) > html-parser processes entities, but the default for html->sxml is just to leave the encoded as-is. I'm not sure if that's the best default, but will at least provide a convenient option to get the decoded strings. -- Alex
_______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
