 |
PHP: htmlspecialchars_decode(); |
 |
06.04.2007, 14:46
|
#1
|
полюбому йес эм...
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
|
PHP: htmlspecialchars_decode();
string htmlspecialchars_decode ( string $string [, int $quote_style] )
serverum as default dras e vor $quote_style = ENT_QUOTES;
inchpes karam et defaulte poxem? (cankali e arans php.ini -i, tekuz htaccess)
uzum em defaulte dnel ENT_COMPAT; bays chem uzum amen angam functione kancheluc grem htmlspecialchars_decode ( $string ,ENT_COMPAT );
naxoroq mersiner!
|
|
|
06.04.2007, 17:14
|
#2
|
Ego coder
Join Date: 07 2004
Location: Yerevan, Armenia
Age: 44
Posts: 3,738
Rep Power: 5
|
e inchna xangarum gres $quote_style = ENT_COMPAT ? ete petq e aveli chkun - if/else-i tak dir scripty vorpes command line argument poxanci paymany.
__________________
Каждый сам кузнец своего счастья, и несчастья тоже.
|
|
|
07.04.2007, 15:50
|
#3
|
Дошкольник
Join Date: 10 2004
Location: Yerevan
Age: 37
Posts: 116
Rep Power: 0
|
1). override_function ( string function_name, string function_args, string function_code )
(PECL) 
2). Edit PHP source code
reflectionnerov urish dzev baci 1).-ic el dzev chi vrode.
Imast/hnaravorutyun chem tenum, inch vor constant redefine anelu.
Ete daje hnaravor liner, hetaga development-i @ntacqum problemner klinen et function-i usage-i het.
Last edited by Intel; 08.04.2007 at 12:25.
Reason: changed i to e :-P
|
|
|
07.04.2007, 16:02
|
#4
|
Ego coder
Join Date: 07 2004
Location: Yerevan, Armenia
Age: 44
Posts: 3,738
Rep Power: 5
|
amena kyasar varianty henc ( $string ,ENT_COMPAT );-na, 1 hat argument vor avel tas inc kexni or?
__________________
Каждый сам кузнец своего счастья, и несчастья тоже.
|
|
|
07.04.2007, 19:34
|
#5
|
полюбому йес эм...
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
|
Quote:
Originally Posted by AvDav
amena kyasar varianty henc ( $string ,ENT_COMPAT );-na, 1 hat argument vor avel tas inc kexni or? 
|
harce nranum e, vor mot 200 failani script e, and ira mejis an@ndhat kanchvum e et functione...  henc ($strinf) -ov... bays miban aresi...  et sax faileri mej functoni anune poxeci urish anuni, u dzerov im uzas functione gresi..
PHP Code:
function htmlspecialchars_decode_m($string) { $string= str_replace(""", "\"", $string); $string= str_replace("'", "'", $string); $string= str_replace("<", "<", $string); $string= str_replace(">", ">", $string); $string= str_replace("&", "&", $string); return $string; }
|
|
|
08.04.2007, 12:23
|
#6
|
Дошкольник
Join Date: 10 2004
Location: Yerevan
Age: 37
Posts: 116
Rep Power: 0
|
Sovorabar, nman depqeum, nor function-ic kanchum en hin@ urish argumentnerov.
PHP Code:
function htmlspecialchars_decode_m($string)
{
htmlspecialchars_decode($string, ENT_COMPAT);
}
kam, ete meka sagh hatik hatik edit es anelu sarqes qo grac-@, hena miangamic sarqi htmlspecialchars_decode($string, ENT_COMPAT);
Zend@ angam hatuk feature uni, dra hamar.
BTW
$string= str_replace("'", "'", $string);
|
|
|
08.04.2007, 16:39
|
#7
|
полюбому йес эм...
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
|
Quote:
Originally Posted by Intel
Sovorabar, nman depqeum, nor function-ic kanchum en hin@ urish argumentnerov.
PHP Code:
function htmlspecialchars_decode_m($string)
{
htmlspecialchars_decode($string, ENT_COMPAT);
}
kam, ete meka sagh hatik hatik edit es anelu sarqes qo grac-@, hena miangamic sarqi htmlspecialchars_decode($string, ENT_COMPAT);
Zend@ angam hatuk feature uni, dra hamar.
BTW
$string= str_replace("'", "'", $string);
|
replace chey kara anel, vortev $string -i anune tarber failerum tarber e, => chey kara grel REPLACE htmlspecialchars_decode($string); to htmlspecialchars_decode($string, ENT_COMPAT);
isk func-i mejis func canchele kargin ban asesir... mtqovs cher ansel  thanks!
|
|
|
 |
All times are GMT. The time now is 12:52. |
|
|