How do you make the PHP field respect the trimming settings of the field?

I have few fields in my view with the exclude form display enabled.

I use the PHP field to apply some conditions, but if ignores the trimming options of the fields.

this is the field and I guess there should be some sort of a function to set maximum length and check for unclosed tags.
$data->_field_data['nid']['entity']->field_body_footer['und'][0]['value'])

Comments

johnv’s picture

I think you need to render() the field.