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.

enter image description here

in detail view

enter image description here

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -