Re: [xml] xmlSetProp Escape Free.




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]