diff --git a/src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php b/src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php index e1ec46e0de..3fd1daf195 100644 --- a/src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php +++ b/src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php @@ -35,7 +35,7 @@ final class PhabricatorTokenGivenFeedStory public function renderText() { // TODO: This is grotesque; the feed notification handler relies on it. - return strip_tags($this->renderView()->render()); + return strip_tags(hsprintf('%s', $this->renderView()->render())); } } diff --git a/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php b/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php index 57190e00d0..5e48c6dfc4 100644 --- a/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php +++ b/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php @@ -57,7 +57,7 @@ class PhabricatorApplicationTransactionFeedStory public function renderText() { // TODO: This is grotesque; the feed notification handler relies on it. - return strip_tags($this->renderView()->render()); + return strip_tags(hsprintf('%s', $this->renderView()->render())); } }