I have following PHP code
$val="<div id=user".$row['cid']." userid=".$row['cid']." class=innertxt><img src=images/images.jpg width=50 height=50><strong>".$uname."</strong><ul> <li>Email: ".$row['cemail']."</li> <li> <input type=checkbox id=select".$row['cid']." value=".$row['cid']." class=selectit /></li> </ul> </div>" ;
$return["foo"] =$val;
print json_encode($return);
but once i get result i get in following format ?
<div id=user11 userid=11 class=innertxt><img src=images\/images.jpg width=50 height=50><strong>Ruby<\/strong><ul> <li>Email: [email protected]<\/li> <li> <input type=checkbox id=select11 value=11 class=selectit \/><\/li> <\/ul>
<\/div>
why i am getting this \/ and how to solve it?