Php Google日历API:事件的描述包含意外字符

Php Google日历API:事件的描述包含意外字符,php,google-calendar-api,Php,Google Calendar Api,我的描述中出现了意想不到的字符。这很奇怪,因为它看起来像HTML实体,但像HTML\u entities\u decode()这样的函数不能与amp或nbsp 你可以在下面看到我从活动中得到的结果 从谷歌日历API获取图片结果事件 我试图用PHP代码直接从日历API复制它,但我做不到。你能提供你正在使用的代码和事件描述吗?我有一个Google日历类和一个函数getEvent:函数getEvent($eventId){try{$event=$this->service->events->get($

我的描述中出现了意想不到的字符。这很奇怪,因为它看起来像HTML实体,但像
HTML\u entities\u decode()
这样的函数不能与
amp
nbsp

你可以在下面看到我从活动中得到的结果

从谷歌日历API获取图片结果事件


我试图用PHP代码直接从日历API复制它,但我做不到。你能提供你正在使用的代码和事件描述吗?我有一个Google日历类和一个函数getEvent:
函数getEvent($eventId){try{$event=$this->service->events->get($this->calurl,$eventId);if(!$event)return false;return$event;}catch(异常$e){error_log('Google getEvent:'。$e->getMessage());return false;}}
请将格式化代码添加到问题中