tengo el problema de conversion de comillas simples y dobles
Código PHP:
$m=$_POST['m'];
echo $m;
//'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif">
echo '<pre>',$m,'</pre>';
//<pre>'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif"><br></pre>
echo htmlentities($m);
//'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif"><br>
echo htmlentities($m,ENT_QUOTES);
//'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif"><br>
echo htmlspecialchars($m);
//'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif"><br>
echo htmlspecialchars($m,ENT_QUOTES);
//'hola' "hola" <img src="http://localhost/col/user/editor/WYSIWYG/images/emoticons/biggrin.gif"><br>
gracias