RE: [PHP] RE: stripping quotes from urls and images

2002-07-31 Thread electroteque
: electroteque; Joel Boonstra; [EMAIL PROTECTED] Subject: Re: [PHP] RE: stripping quotes from urls and images I'm reminded of a reasonable quote: "It's easy to write HTML, and impossible to parse it" Because HTML is *SO* easy to write, and has so many options, and is easy to screw

Re: [PHP] RE: stripping quotes from urls and images

2002-07-31 Thread Justin French
I'm reminded of a reasonable quote: "It's easy to write HTML, and impossible to parse it" Because HTML is *SO* easy to write, and has so many options, and is easy to screw up AND have browsers still work, it's totally evil to parse. You end up with massive regular expressions, or a state engine

[PHP] RE: stripping quotes from urls and images

2002-07-31 Thread electroteque
i sorter need a preg example i'm not very good at it , and its for a wysiwyg dhtml editor , it reformats those tags if the quotes are there when i load the content and stuffs the code -Original Message- From: Joel Boonstra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 6:18 AM

[PHP] Re: stripping quotes from urls and images

2002-07-31 Thread Joel Boonstra
> hi guys i now have a problem with urls i need to remove the quotes from both > href="" and src="" > > so > needs to be and i cant > remove quotes from all string matches :| Someone mentioned this already, but you should really know that if you remove quotes from your HTML attributes, your H