RES: fets() escaping some characters

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

 



This issue has to do with HTML markup. You need to properly "escape"
characters before sending them as text to the browser. Try to use this PHP
function to escape your string: echo htmlspecialchars($yourstringhere);

Regards,
Samuel.

-----Mensagem original-----
De: sunil meena [mailto:sunil.extc2209@xxxxxxxxx] 
Enviada em: terça-feira, 11 de setembro de 2012 14:49
Para: php-general@xxxxxxxxxxxxx
Assunto:  fets() escaping some characters

Hello Everyone,

Very new to the list.

So I am trying to echo a string to the browser as follows -

$str = "0x100092000 -        0x1000b7fff +com.apple.com (2.0 - 56)
<BB91F4F8-3B1B-93C6-0D1A-E431E96F1BA3> /Library/PrivateFrameworks";

echo $str;

However the text between "<" and ">" i.e
"BB91F4F8-3B1B-93C6-0D1A-E431E96F1BA3" doesn't get echoed instead all I get
is "0x100092000 -        0x1000b7fff +com.apple.com (2.0 - 56)
/Library/PrivateFrameworks";

Anyone knows why this is happening?

This happened while I was getting a line using fgets and hence I tried
storing that string into a variable and outputting but it still doesn't show
the characters between the "<>".

Any help is highly appreciated.

Thanks

--
Best Regards,
Sunil Meena


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