Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )
| From: | tedd | Date: | Wed, 28 Jun 2006 17:55:59 +0000 |
| Subject: | Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T ) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238820@lists.php.net to get a copy of this message | ||
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:
>
> '&lt; &amp; &gt; are characters with
> special meaning in HTML and should be html encoded as
> &amp;lt; &amp;amp; &amp;gt;'.
>
>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