I created the function below to save the user data, did some tests and managed to run the filter and save successfully.
function fDescribe() {
functions::startSession();
if($_POST['token'] == $_SESSION['token']) {
$this->describeC = strip_tags($_POST['textarea'],
'<h1><h2><h3><h4><h5><h6><p><u><strong><em><address><strong><br><abbr>');
$this->conn = parent::getCon();
$this->pQuery = $this->conn->prepare("update table set description=? where user_id=? limit 1");
$this->pQuery->bindParam(1, $this->describeC);
$this->pQuery->bindParam(2, $_SESSION['id']);
$this->result = $this->pQuery->execute();
unset($this->conn);
if($this->result == true) {
functions::generateJsonMsg('success', null, null, null, null);
exit();
} else {
functions::generateJsonMsg('fault', 'queryFault', null, null, null);
exit();
}
} else
return false;
}