Re: [xml] xmlSetProp Escape Free.
- From: Zaid Amireh <tumbak gmail com>
- To: "Christopher R. Maden" <crism maden org>
- Cc: xml gnome org
- Subject: Re: [xml] xmlSetProp Escape Free.
- Date: Tue, 2 Aug 2011 00:09:37 +0300
On Aug 1, 2011, at 11:48 PM, Christopher R. Maden wrote:
On 08/01/2011 04:35 PM, Zaid Amireh wrote:
The thing is that libxml is escaping the & between the two parameters
into & and this is obviously not needed for html href's, I
checked the mailing list and someone in 1999 proposed to implement
xmlSetRawProp but it seems it never made it, any ideas on how to
overcome this?
Obvious to whom? It is, in fact, required (by the HTML specifications)
to turn the & into &, even if it is rarely done in practice.
Citation please.
RFC1630 (and RFC1738 and RFC1808 for that matter) states that '&' is safe to use and all of those RFC
actually don't even mention &
from RFC1630
httpaddress h t t p : / / hostport [ / path ] [ ?search ]
search xalphas [ + search ]
xalphas xalpha [ xalphas ]
xalpha alpha | digit | safe | extra | escape
safe $ | - | _ | @ | . | & | + | -
Zaid
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]