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]

 



At 6:40 PM +0200 6/28/06, Jochem Maas wrote:
>
> > 3. Then use htmlentities() to retrieve the pages.
>
>grand. so then he'll have stuff like '>body<'
>probably not what he wants - granted you can use regular expressions
>to change all the content *between* the tags he actually wants to
>output which be closer to the to what he might want but even then you
>have to be careful not to 'entitize' stuff that was already existing
>as html entities in the data coming from the DB otherwise he ends
>up with stuff like:
>
>	'< & > are characters with
>	 special meaning in HTML and should be html encoded as
>	 < & >'.
>
>I guess now is not the time to freak Ryan with all the potential
>problems related to charset encoding :-)

Ah yes -- you are absolutely right. I was thinking about displaying the output directly to a browser for review.

I imagine that what Ryan wants is to display the html exactly as it was gathered and thus displayed AS a web page.

In that case, Ryan, don't use htmlentities() to retrieve the data -- just get it. It will be as it was, so sayth tedd. As it is written, so it shall be done.

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com

-- 
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