⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Export html tags



felipeh
  • profile picture
  • Member

Posted 20 June 2017 - 13:00 PM

Hi, I have a field populated by ckeditor, now I want to export in excel/csv but showing the html tags (ex: <b>test</b>)
Trying to make a callback int that column, but its seems not affect the export.

if ($state == 'export')
{
$this->grocery_crud->callback_column('descripcion1',array($this,'muestra_html'));
$this->grocery_crud->columns('sku','descripcion1');
}	

public function muestra_html($value, $row)
{
return htmlspecialchars($row->descripcion1);
}

Any hint how to do this?


felipeh
  • profile picture
  • Member

Posted 20 June 2017 - 15:28 PM

Just remove the strip_tags code from _trim_export_string function  :rolleyes: