我有几个使用 CKEditor 4 的所见即所得文本区域。我将数据存储在 MYSQL 数据库中。如果我将 textarea 留空并将其提交到数据库,CKEditor 会自动插入一个特殊字符Â
Â。有人知道解决这个问题吗?
HTML:
<textarea cols="60" rows="8" name="description" class="ckeditor"></textarea>
PHP:
// Handler stuff here
$name = $_POST['name'];
$title = $_POST['title'];
$description = $_POST['description'];
$sql = "INSERT INTO `aircraft`
(name,
description,
title)
VALUES (?, ?, ?)";
$sth = $this->dbh->prepare($sql);
$sth->execute(array($name, $description, $title));