I am developing a php manager for prestashop via webservice. I have a module created to keep notes about orders.
From the management program I have a form with TinyMCE. But I can't save the text when it has HTML tags
webService class in prestashop module
class sellerNotas extends ObjectModel {
public $id;
public $id_seller;
public $nota;
public static $definition = array(
'table' => 'seller_notas',
'primary' => 'id',
'fields' => array(
'id' => array('type' => self::TYPE_INT),
'id_seller' => array('type' => self::TYPE_INT),
'nota' =>array('type' => self::TYPE_HTML, 'lang' => false, 'validate' => 'isCleanHtml'),
)
);
protected $webserviceParameters = array();
}
I have no problem saving plain text without labels, the problem is when the text has labels. I have tried htmlentities with no correct results.