Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you trying to use PHP to write the HTML onto a database. If this is the 
case you can simply use addslashes(). This way you can still preserve the 
double quotes, but write into the database without any problems.

Either way some processing will be involved at some point. So I guess there is 
not much you can do about it.

Prathap




---------- Original Message -----------
From: Ryan A <genphp@xxxxxxxxx>
To: php php <php-general@xxxxxxxxxxxxx>
Sent: Wed, 28 Jun 2006 02:29:45 -0700 (PDT)
Subject:  Single quotes verses double quotes default behavior with DW ---
-----> (Pretty much 0T )

> Hi,
> 
> I have searched for this answer on google and even
> written on a few forums asking for an answer, am just
> trying my luck here as I am sure quite a few list
> users use DreamWeaver.
> 
> 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.
> 
> I am doing this as I am putting the entire content of
> a html page into the DB and the double quotes are
> screwing things up for me.
> I have thought of doing a str_replace() for the double
> quotes but thats extra processing which can be a
> headache if its a large page.
> 
> Or if I am barking up the wrong tree and this is not
> possible (changing DWs default behavior, just tell me
> and will stop searching.
> 
> Thanks!
> Ryan
> 
> ------
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
------- End of Original Message -------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux