Re: htmlentities()

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

 



Hi,
I tried to understand htmlentities by putting this code into a test.php:

[...]

The output on the screen is:

field1=*Greater input and lower input*
field2=<b>Greater input and lower input</b>

<b>Greater input and lower input</b>

A 'quote' is <b>bold</b>
A 'quote' is <b>bold</b>


I expected that it would give me in the second line:
field2=&lt;b&gt;Greater input and lower input&lt;/b&gt;

and the lower two lines I expected as:

A 'quote' is &lt;b&gt;bold&lt;/b&gt;
A &#039;quote&#039; is &lt;b&gt;bold&lt;/b&gt;


What do I miss understand here

did you try to 'view-source' the page ?

--
Ludovic André

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