RE: [PHP] replacing & but not special chars

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "Ford, Mike [LSS]" claimed that: |> -Original Message- |> From: Shawn McKenzie [mailto:[EMAIL PROTECTED] |> Sent: 27 July 2003 08:36 |> |> I have some URLs in hrefs that have an &. This does not |> validate HTM4.01 |> transitional, so I want to replace them

RE: [PHP] replacing & but not special chars

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Shawn McKenzie [mailto:[EMAIL PROTECTED] > Sent: 27 July 2003 08:36 > > I have some URLs in hrefs that have an &. This does not > validate HTM4.01 > transitional, so I want to replace them with & > > So I buffer the output and do a replace, but suppose there

Re: [PHP] replacing & but not special chars

2003-07-27 Thread Andrew Brampton
a valid URL, so I don't think you should worry at all :))... And if you are worrying then any method you chose will have this problem and you should do the task by hand :) Hope this helps Andrew - Original Message - From: "Shawn McKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PRO

[PHP] replacing & but not special chars

2003-07-27 Thread Shawn McKenzie
I have some URLs in hrefs that have an &. This does not validate HTM4.01 transitional, so I want to replace them with & So I buffer the output and do a replace, but suppose there is already an & then I get & or if I have anything else like " then I get " Any ideas on how to do this the