/** * Retrieves the prepared notification body text * * @return string */ public function getNotificationBody() { if ($this->_notificationBody === null) { // see: http://stackoverflow.com/questions/6275380/does-html-entity-decode-replaces-nbsp-also-if-not-how-to-replace-it if (IfwPsn_Wp_Proxy_Blog::getCharset() == 'UTF-8') { $body = str_replace("Â ", ' ', html_entity_decode($this->get('notification_body'), ENT_COMPAT, IfwPsn_Wp_Proxy_Blog::getCharset())); } else { $body = str_replace(" ", ' ', html_entity_decode($this->get('notification_body'), ENT_COMPAT, IfwPsn_Wp_Proxy_Blog::getCharset())); } $body = IfwPsn_Wp_Proxy_Filter::apply('psn_rule_notification_body', $this->_replacer->replace($body), $this); $this->_notificationBody = $body; } return $this->_notificationBody; }