scarab890
asked on
Change dreamweavers default double quotes to single quotes
Hi,
By default dreamweaver outputs tags like this:
<img src="foo.gif" class="blah">
As you can see from the above the values are always enclosed in double quotes by default, how can i change the default to be single quotes?
eg:
<img src='foo.gif' class='blah'>
I am tired of everytime copying it into notepad and then running a replace all before inserting it into the db.
Or if I am barking up the wrong tree and this is not possible (changing DWs default behavior, just tell me and I'll give you the points anyway)
Thanks!
By default dreamweaver outputs tags like this:
<img src="foo.gif" class="blah">
As you can see from the above the values are always enclosed in double quotes by default, how can i change the default to be single quotes?
eg:
<img src='foo.gif' class='blah'>
I am tired of everytime copying it into notepad and then running a replace all before inserting it into the db.
Or if I am barking up the wrong tree and this is not possible (changing DWs default behavior, just tell me and I'll give you the points anyway)
Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Thanks for replying.
I did check C:\Programs\Macromedia\Dre amweaver MX 2004\Configuration but didnt find my answer there
I have no idea of how to create an extentsion and since i am in the middle of a project, I really dont have time to take time off and learn :-(
Any other ideas?
@Rouchie, Not really bothered about being standard-compliant as long as it works and renders properly in IE and FF :-)
The reason I need single quotes is I am creating the content of the page in DW then just copying the whole table to the DB...but its screwing up my insert and fetch queries when there are double quotes.
I am trying to avoid using addslashes or str_replace, but does not look like i have a lot of choice.
Thanks!
Thanks for replying.
I did check C:\Programs\Macromedia\Dre
I have no idea of how to create an extentsion and since i am in the middle of a project, I really dont have time to take time off and learn :-(
Any other ideas?
@Rouchie, Not really bothered about being standard-compliant as long as it works and renders properly in IE and FF :-)
The reason I need single quotes is I am creating the content of the page in DW then just copying the whole table to the DB...but its screwing up my insert and fetch queries when there are double quotes.
I am trying to avoid using addslashes or str_replace, but does not look like i have a lot of choice.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Its ok, thanks for your help guys, I am leaving DW alone and tackling this from the php side via mysql_real_escape_string()
I split the points as both of you tried to help me.
Thanks again!
I split the points as both of you tried to help me.
Thanks again!
Single quotes as far as I know are for javascript.