php - SugarCRM, displaying data as HTML in DetailView -
in sugarcrm, have tried use rich text editor fields using tinymce , stores , renders in editview in listview , detailview output displaying tags instead of formatting.
in database storing html tags expected. looking solution how render formatting in detailview section.
in detail view
i found solution decode html characters in smarty in customcoce in detailviewdefs.php file.
'name' => 'editor_c', 'studio' => 'visible', 'customcode' => '{$fields.editor_c.value|escape:\'htmlentitydecode\' |escape:\'html\'|strip_tags|url2html|nl2br}',
Comments
Post a Comment