Re: [guile-lib] html->sxml does not decode entities in attributes

Tomas Volf <[email protected]> Wed, 05 Feb 2025 18:57:29 +0100
Newsgroups gmane.lisp.guile.devel
Message-ID <[email protected]>
"Dr. Arne Babenhauserheide" <[email protected]> writes:

>> I see few ways forward:
>>
>> 1. Document the current behavior and keep it as it is.
>> 2. Add argument #:decode-attributes, defaulting to #f, to the relevant
>>    procedures, so that people can opt into the fixed behavior.
>> 3. Introduce parameter %decode-attributes, so that people can opt into
>>    the fixed behavior.
>>
>> I am sure there are also other approaches possible.
>
> Since htmlprag already uses parameters for customization
> (%strict-tokenizer?), option 3 sounds best to me.
>
> http://git.savannah.nongnu.org/gitweb/?p=guile-lib.git;a=blob;f=src/htmlprag.scm;h=79a7b2f33b0755474bfc015912c01bdf6c676a15;hb=HEAD#l44
>
> (but I’m not the maintainer, so others may have a different opinion)
>
> Can you create a patch?

Probably not.  I have spent 20 minutes staring into the file and do not
really have any idea where to start (ok, probably somewhere around
`scan-attr').  So I cannot really promise I will be able to work on this
(at least not soon), since I assume it will take me long time to figure
out.

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc (application/pgp-signature, 853 B)
-----BEGIN PGP SIGNATURE-----

iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmejpokOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/wallNQ/8D/243RDzHwGdMwTR4aXCQv9iQ+/belTg1epE
Coa82paDNpQURSyJeRSeD7/5uJF1GnuW4zjrkeo3YjO6pxoMj8EMfy3gbMyH/1Vz
C8A4XZhDykpGeFEeCCTqHIDFAbN8i46FDWskIulJon86Z3XP/w7WnGlzyLpReUx5
9Wj8wSL7pknAzNfGI0nDYEuSAeBiPFnhlFS7RKw+ghv54se9ijJqrmqpSRYicftE
czTRJVUXOzoDBKM4bB2Pb1uJpVegP3heqXmWPj6e5G9KwcBtPlGeWCwIHtgOQzrT
2Cijwa3QYhEHRlz/64xbZw2Gbe9pRG6+vYf9PCS8qP9wsBhodmU7eG92z7qCAei+
bu0or4BqCLOKf3l6dizvbx1PHmcM2OAFQJzqpvUIfg1VbRoEk9Cz1MlUISum2D1v
1KvDuLpMhxGG18LH6b7TRyR1+HyBeiX1zxPR7PrD+Ll0DBRaV6FiGAMH2+gR5eC7
PCmCDMcvs3VnCcQJiFdlZWvtxhkFkScII07jeXF9Uz1fEhamMygw5a7Wg3vo5U/l
jw6uWU3W5cl+xXtLNUUZYSqXu2KfPh+QXlFbwO3TYucRYTQdhmqs5mYgZWmzALgp
KINjQ7ST2EcnZusXCmzKBTOJdgzD7WP3G10naRJhqsEtXV5Wzt5pEj9RLhQ5oMXH
MsA1BRM=
=PZ14
-----END PGP SIGNATURE-----