03-05-2014, 11:49 PM
(03-05-2014, 08:11 AM)Ekilio a écrit : Bonjour,
Code PHP :<?php
$text = "€ & du texte <b>et du html</b>";
echo htmlspecialchars(html_entity_decode($text));
Comme ça ?
Edit : trop lent, c'est ce que Sephi-Chan proposait ^^'
htmlspecialchars(html_entity_decode('test € & test')) // => test € & test => marche pas^^
Sinon julp, Xenos
en effet... super intuitif d'ailleurs
Citation :htmlspecialchars($texte, ENT_QUOTES | ENT_HTML40, 'UTF-8', false)^^
merci