in reply to Re: Switching out characters inside links
in thread Switching out characters inside links

What does this have to do with XML? He specifically mentioned HTML where ampersand needs to be escaped as well. Especially when you consider that the semi-colon is optional in HTML.
http://www.somedomain.com/index.cgi?page=home&quot=1
is the same as
http://www.somedomain.com/index.cgi?page=home"=1

Replies are listed 'Best First'.
Re^3: Switching out characters inside links
by Your Mother (Archbishop) on Nov 27, 2009 at 03:58 UTC

    The OP asked how to get &s to &s in an existing snippet of HTML. My solution does that and it does it without saying start over and do it from scratch which often isn't an option.

    It also sounded like it might be an XY question and the real issue was a need to do HTML->XHTML since the vanilla HTML world isn't usually concerned whether docs validate or not.