when ever i use the CKE to add a link the resulting code is as follows
<a href="\"http://google.com\"">http://google.com</a>
NOW i am using php and mysql to store the data, but dont know how to solve this problem so any help would be great
PHP Submit code:
if($_POST['Submit'])
{
$formdata = NULL; //set the form data to null so not to confuse the insert
$formdata = $_POST['postdata']; //get the form data from CKE
$title = $_POST['title']; //get the title
$formdata =htmlentities($formdata); //try and encode the string so it dont store pure HTML
$sql=$con->prepare("INSERT INTO `posts`(title,mini_detail,detal) VALUES (?,?,?)");
$sql->bind_param("sss",$title, $formdata, $formdata);
$sql->execute();
$result= $sql->affected_rows ;
$sql->close();the view php code
<div id="scroll">
<div id="title">
<? echo $row['title']; ?>
</div>
<? echo html_entity_decode($row['detal']); // decode the html from " to '?>
<br />
