function Announcement::getContent

Same name in other branches
  1. 11.x core/modules/announcements_feed/src/Announcement.php \Drupal\announcements_feed\Announcement::getContent()

Returns the content of the announcement with no markup.

Return value

string Content of the announcement without markup.

File

core/modules/announcements_feed/src/Announcement.php, line 54

Class

Announcement
Object containing a single announcement from the feed.

Namespace

Drupal\announcements_feed

Code

public function getContent() {
    return strip_tags($this->content_html);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.