|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Membre habitué
![]() Inscription : mai 2004 Messages : 383 ![]() |
Salut,
J'ai une réaction bizarre avec htmlspecialchars_decode, peut-être je l’utilise mal. En faisant: Code :
$string = htmlspecialchars_decode($string); Code :
$string = htmlspecialchars_decode(str_replace(" ", " ", $string)); Quelqu'un saurait pourquoi ? merci, Vincent. |
|
|
00
|
|
|
#2 |
|
Expert Confirmé
![]() ![]() |
Bonjour,
C'est silmple : htmlspecialchars_decode() ne s'occupe que des caractères encodés par htmlspecialchars() et l'entité n'en fait pas partie. Regardes avec html_entity_decode(), tu devrais ainsi récupérer ton espace insécable.
__________________
# Dans la Création, tout est permis mais tout n'est pas utile... |
|
00
|
|
|
#3 |
|
Membre habitué
![]() Inscription : mai 2004 Messages : 383 ![]() |
parfait, c'était ça
merci. |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com