Hi,
I work with a ubuntu system and php 5.2.1.
The next code doesn’t convert special characters and html codes to entities!
[CODE]<html>
<head>
<title>Text including html</title>
</head>
<body>
<?php
echo phpinfo();
$str= <<<TEXT
Einstürzende Neubauten and Marya’s & <br>Mother and again “test”.
TEXT;
$code=htmlentities($str, ENT_QUOTES);
$code1=htmlspecialchars($str);
echo $code,”<br>”,$code1;
?>
</body>
</html>
The output of the code is:
[QUOTE]
Einstürzende Neubauten and Marya’s & <br>Mother and again “test”.
Einstürzende Neubauten and Marya’s & <br>Mother and again “test”.
Could you say me why my code doesn’t work?
Thanks,