To fix this, you need to add a line to replace the variable with the html allowed version, and this is done in the table.
If you already have a check function in your table, just put the '$this->description' line in, otherwise create the whole check function.
In this case the name of the input is 'description', and I'm telling it to be replaced with the 'description' POST variable, but using the JREQUEST_ALLOWHTML mask.
Code: Select all
function check(){
/**
* replace both instances of 'description' with your input name
*/
$this->description = JRequest::getVar('description','','POST','STRING',JREQUEST_ALLOWHTML);
return true;
}