in reply to Parsing un-encoded ampersand in XHTML

I'm not quite clear what you're trying to do - but it could be that you're trying to deal with link encodings. If that's the case, have a look at URI::Escape
  • Comment on Re: Parsing un-encoded ampersand in XHTML