chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] html->sxml (html-parser egg) does not decode entities in


From: Philip Kent
Subject: [Chicken-users] html->sxml (html-parser egg) does not decode entities in html attributes, ideas why?
Date: Tue, 3 Sep 2013 14:19:39 +0000

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=\"&quot;\">")
(*TOP* (div (@ (data-foo "&quot;"))))

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!)

DerGuteMoritz mentioned on IRC that htmlprag behaves the same way.

Any help you can give would be appreciated greatly!

Thanks,
Philip Kent

reply via email to

[Prev in Thread] Current Thread [Next in Thread]