Example
$txt = htmlspecialchars($txt);
to change
$txt = stripslashes($txt);
Example2:
<?php
$str="<img src="\"http://img.localhost/548123df619bb06744fbcd075c0f1b52.jpg\"" >";
echo stripslashes($str);
?>
Result:
<img src="http://img.localhost/548123df619bb06744fbcd075c0f1b52.jpg" >
沒有留言:
張貼留言