Skip to main content
5 events
when toggle format what by license comment
Dec 15, 2015 at 11:32 comment added Shubham Sometimes the #markup not have content in it. So, you should use drupal_render for rendering the field and strip out the tags using some php function like strip_tags($str);
Dec 15, 2015 at 11:20 comment added Lenny I've already set it to display as plain text instead of a link. But there's still additional divs rendered around the plain text content.
Dec 15, 2015 at 11:17 comment added Shubham You can set taxonomy term display as plain text using the manage display section of the specific content type. Also, is that node have some data within that field?
Dec 15, 2015 at 11:10 comment added Lenny Yeah, this will work, but it also renders additional divs, does it not? I need to get the taxonomy term in plain text – is that possible with that method?
Dec 15, 2015 at 11:09 history answered Shubham CC BY-SA 3.0