Inside my DataObject I have method that returns some HTML to be displayed inside the object's summary_field. For the HTML to be rendered (instead of being output as raw text) I use return DBField::create_field('HTMLText', $summary);.
Now the issue is that $summary contains shortcodes, and they are being parsed in the gridfield resulting in complete galleries / forms inside a gridfield.
Is there an easy way to switch off shortcode parsing for the specific DBField (or HTMLText) instance? (or even better, a way to replace them with an image)
Inside my DataObject I have method that returns some HTML to be displayed inside the object's
summary_field
. For the HTML to be rendered (instead of being output as raw text) I usereturn DBField::create_field('HTMLText', $summary);
.Now the issue is that
$summary
contains shortcodes, and they are being parsed in the gridfield resulting in complete galleries / forms inside a gridfield.Is there an easy way to switch off shortcode parsing for the specific
DBField
(or HTMLText) instance? (or even better, a way to replace them with an image)