I have a content type with a Long text and summary field. In the node view display, it is set to to show as Summary or trimmed.
I have a module that gets all the nodes of that content type.
How do I programmatically get the trimmed value of that field? Using var_dump()
, I get the following output.
["field_description"]=>
array(1) {
["und"]=>
array(1) {
[0]=>
array(5) {
["value"]=>
string(5763) "<p>Test user DescriptionTest</p>"
["summary"]=>
string(0) ""
["format"]=>
string(9) "full_html"
["safe_value"]=>
string(5764) "<p>Test user Description</p>"
["safe_summary"]=>
string(0) ""
}
}